- 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 booleanequals(java.lang.Object object)inthashCode()booleanisAbsolute()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 ofSegments that this path represents.java.lang.StringtoString()-
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:PathIndicates whether this path is absolute (begins with '/') or not.- Specified by:
isAbsolutein classPath<T>- Returns:
- whether this path is absolute (begins with '/') or not.
-
segments
public java.util.List<Segment<T>> segments()
Description copied from class:PathReturns the list ofSegments that this path represents. Note that thisListcontains the same elements as returned by callingiterator()onthis.
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-