Package com.rosetta.model.lib.path
Class RosettaPath
java.lang.Object
com.rosetta.model.lib.path.RosettaPath
- All Implemented Interfaces:
Comparable<RosettaPath>
- Direct Known Subclasses:
RosettaPath.NullPath
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(RosettaPath other) Path elements with a zero index are equivalent to elements with no index.booleancontainsPath(RosettaPath subPath) static RosettaPathcreatePath(RosettaPath.Element element) static RosettaPathcreatePath(RosettaPath parent, RosettaPath.Element element) static RosettaPathcreatePathFromElements(List<RosettaPath.Element> elements) booleanendsWith(RosettaPath other) booleaninthashCode()booleannewSubPath(RosettaPath.Element element) newSubPath(String path) newSubPath(String path, int index) booleanstartsWith(RosettaPath other) toString()static RosettaPathwithIndex(int index)
-
Method Details
-
createPath
-
createPath
-
createPathFromElements
-
valueOf
-
newSubPath
-
newSubPath
-
newSubPath
-
withIndex
-
trimFirst
-
allElements
-
allElementPaths
-
buildPath
-
getParent
-
getElement
-
endsWith
-
containsPath
-
startsWith
-
equals
-
matchesIgnoringIndex
-
toIndexless
-
toString
-
hashCode
public int hashCode() -
compareTo
Path elements with a zero index are equivalent to elements with no index. The compareTo implementation is required to sort paths where no index and zero index are equal.- Specified by:
compareToin interfaceComparable<RosettaPath>
-