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

org.freedesktop.dbus.DBusPath Maven / Gradle / Ivy

Go to download

Improved version of the DBus-Java library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/).

There is a newer version: 5.1.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy