Class NodePath

  • All Implemented Interfaces:
    java.lang.Comparable<NodePath>

    @PublicApi
    public final class NodePath
    extends java.lang.Object
    implements java.lang.Comparable<NodePath>
    • Field Detail

      • ROOT

        public static final NodePath ROOT
    • Constructor Detail

      • NodePath

        public NodePath​(java.lang.String path)
    • Method Detail

      • isRoot

        public boolean isRoot()
      • asRelative

        public NodePath asRelative()
      • asAbsolute

        public NodePath asAbsolute()
      • getParentPath

        public NodePath getParentPath()
      • getParentPaths

        public java.util.List<NodePath> getParentPaths()
      • isEmpty

        public boolean isEmpty()
      • isAbsolute

        public boolean isAbsolute()
      • isRelative

        public boolean isRelative()
      • hasTrailingDivider

        public boolean hasTrailingDivider()
      • trimTrailingDivider

        public NodePath trimTrailingDivider()
      • elementCount

        public int elementCount()
      • getElementAsString

        public java.lang.String getElementAsString​(int index)
      • getName

        public final java.lang.String getName()
      • resolvePathElementNames

        public java.lang.Iterable<java.lang.String> resolvePathElementNames()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(NodePath o)
        Specified by:
        compareTo in interface java.lang.Comparable<NodePath>