public final class StructuredPath extends java.lang.Object implements Path
Note: If the first segment equals IdempotentEncoded.EMPTY the result is an absolute Path. A IdempotentEncoded.EMPTY element at the
essentially appends a '/' to the end of the String representation.
| Constructor and Description |
|---|
StructuredPath(UriEncoded... segments) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAbsolute()
Returns whether this path is absolute, i.e. starts with a "/".
|
boolean |
isEmpty()
Returns whether this path is empty, i.e. contains no path segments.
|
java.util.Iterator<UriEncoded> |
iterator() |
public StructuredPath(UriEncoded... segments)
public boolean isEmpty()
Pathpublic boolean isAbsolute()
PathisAbsolute in interface Pathtrue if this path is absolute, false otherwise.public java.util.Iterator<UriEncoded> iterator()
iterator in interface java.lang.Iterable<UriEncoded>