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

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

Go to download

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

The newest version!
package org.freedesktop.dbus;

import java.util.Objects;

/**
 * @deprecated please use {@link DBusPath} instead
 */
@Deprecated(forRemoval = true, since = "5.1.1 - 2024-11-16")
public class ObjectPath extends DBusPath {
    private String source;

    public ObjectPath(String _source, String _path) {
        super(_path);
        this.source = _source;
    }

    @Override
    public String getSource() {
        return source;
    }

    public void setSource(String _source) {
        source = _source;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = super.hashCode();
        result = prime * result + Objects.hash(source);
        return result;
    }

    @Override
    public boolean equals(Object _obj) {
        if (this == _obj) {
            return true;
        } else if (!super.equals(_obj) || getClass() != _obj.getClass()) {
            return false;
        }
        return Objects.equals(source, ((ObjectPath) _obj).source);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy