Class DBusPath

java.lang.Object
org.freedesktop.dbus.DBusPath
All Implemented Interfaces:
Comparable<DBusPath>
Direct Known Subclasses:
ObjectPath

public class DBusPath extends Object implements Comparable<DBusPath>
  • Constructor Details

    • DBusPath

      public DBusPath(String _source, String _path)
    • DBusPath

      public DBusPath(String _path)
  • Method Details

    • getPath

      public String getPath()
    • setPath

      @Deprecated(forRemoval=true, since="5.1.1 - 2024-11-16") public void setPath(String _path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      path will be final in future, please do no longer use the setter.
    • getSource

      public String getSource()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object _obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(DBusPath _that)
      Specified by:
      compareTo in interface Comparable<DBusPath>
    • of

      public static DBusPath of(String... _parts)
      Create a DBusPath object using one or multiple string parts. Leading slash will automatically appended if missing.
      Parameters:
      _parts - parts to build DBusPath
      Returns:
      DBusPath
      Throws:
      IllegalArgumentException - when no parts are given