com.pandich.dropwizard.curator.NodeValue.java Source code

Java tutorial

Introduction

Here is the source code for com.pandich.dropwizard.curator.NodeValue.java

Source

/*
 * This file is part of dropwizard-curator.
 *
 * dropwizard-curator is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * dropwizard-curator is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with dropwizard-curator.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.pandich.dropwizard.curator;

import org.apache.commons.lang3.StringUtils;

public final class NodeValue {

    private final String path;
    private final String value;

    public NodeValue(final String path, final String value) {
        this.path = path;
        this.value = value;
    }

    public String getPath() {
        return path;
    }

    public String getValue() {
        return value;
    }

    public boolean isBlank() {
        return StringUtils.isBlank(this.value);
    }

}