- java.lang.Object
-
- net.sourceforge.urin.Path<T>
-
- net.sourceforge.urin.AbsolutePath<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
int
hashCode()
boolean
isAbsolute()
Indicates whether this path is absolute (begins with '/') or not.java.util.Iterator<Segment<T>>
iterator()
java.util.List<Segment<T>>
segments()
Returns the list ofSegment
s that this path represents.java.lang.String
toString()
-
Methods inherited from class net.sourceforge.urin.Path
path, path, path, path, rootlessPath, rootlessPath, rootlessPath, rootlessPath
-
-
-
-
Method Detail
-
isAbsolute
public boolean isAbsolute()
Description copied from class:Path
Indicates whether this path is absolute (begins with '/') or not.- Specified by:
isAbsolute
in classPath<T>
- Returns:
- whether this path is absolute (begins with '/') or not.
-
segments
public java.util.List<Segment<T>> segments()
Description copied from class:Path
Returns the list ofSegment
s that this path represents. Note that thisList
contains the same elements as returned by callingiterator()
onthis
.
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-