Package com.io7m.sunburst.model
Class SBPath
java.lang.Object
com.io7m.sunburst.model.SBPath
- All Implemented Interfaces:
Comparable<SBPath>
,Iterable<String>
A normalized path within a package.
-
Method Details
-
root
- Returns:
- The root path
-
parse
Parse a string as a path.- Parameters:
path
- The path- Returns:
- A parsed path
-
equals
-
hashCode
public int hashCode() -
plus
Add an element to a path.- Parameters:
file
- The element to add to the current path- Returns:
- The path
-
toString
-
iterator
-
elements
- Returns:
- The path elements
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SBPath>
-