org.freedesktop.dbus.DBusPath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dbus-java-core Show documentation
Show all versions of dbus-java-core Show documentation
Improved version of the DBus-Java library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/).
package org.freedesktop.dbus;
public class DBusPath implements Comparable {
private String path;
public DBusPath(String _path) {
this.setPath(_path);
}
public String getPath() {
return path;
}
@Override
public String toString() {
return getPath();
}
@Override
public boolean equals(Object _other) {
return _other instanceof DBusPath && getPath().equals(((DBusPath) _other).getPath());
}
@Override
public int hashCode() {
return getPath().hashCode();
}
@Override
public int compareTo(DBusPath _that) {
return getPath().compareTo(_that.getPath());
}
public void setPath(String _path) {
path = _path;
}
}