All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.xenit.apix.data.Path Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
package eu.xenit.apix.data;

/**
 * Represents a path to a node. Has a string value.
 */
public class Path {

    private String value;

    public Path(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return value;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        Path path = (Path) o;

        return value != null ? value.equals(path.value) : path.value == null;

    }

    @Override
    public int hashCode() {
        return value != null ? value.hashCode() : 0;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy