java.lang.Object
swim.uri.UriPart
swim.uri.UriPath
- All Implemented Interfaces:
Comparable<UriPath>,Iterable<String>,Collection<String>,Debug,Display
public abstract class UriPath
extends UriPart
implements Collection<String>, Comparable<UriPath>, Debug, Display
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends String> components) appended(Collection<? extends String> components) appendedSegment(String segment) abstract UriPathbase()abstract UriPathbody()static UriPathBuilderbuilder()voidclear()final intstatic UriPathbooleanbooleancontainsAll(Collection<?> components) abstract <T> Output<T>Writes a developer readable, debug-formatted string representation of this object tooutput.abstract <T> Output<T>Writes a human readable, display-formatted string representation of this object tooutput.static UriPathempty()final booleanfoot()static UriPathfrom(Collection<? extends String> components) final inthashCode()abstract Stringhead()abstract booleanbooleanabstract booleanabstract booleanisEmpty()abstract booleanbooleaniterator()name()static UriPathabstract UriPathparent()static UriPathpathForm()prepended(Collection<? extends String> components) prependedSegment(String segment) booleanbooleanremoveAll(Collection<?> components) booleanretainAll(Collection<?> components) static UriPathintsize()static UriPathslash()abstract UriPathtail()Object[]toArray()<T> T[]toArray(T[] array) abstract StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Method Details
-
isDefined
public abstract boolean isDefined() -
isAbsolute
public abstract boolean isAbsolute() -
isRelative
public abstract boolean isRelative() -
isEmpty
public abstract boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<String>
-
size
public int size()- Specified by:
sizein interfaceCollection<String>
-
head
-
tail
-
parent
-
base
-
name
-
name
-
body
-
foot
-
isRelativeTo
-
isChildOf
-
contains
- Specified by:
containsin interfaceCollection<String>
-
containsAll
- Specified by:
containsAllin interfaceCollection<String>
-
add
- Specified by:
addin interfaceCollection<String>
-
addAll
- Specified by:
addAllin interfaceCollection<String>
-
remove
- Specified by:
removein interfaceCollection<String>
-
removeAll
- Specified by:
removeAllin interfaceCollection<String>
-
retainAll
- Specified by:
retainAllin interfaceCollection<String>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<String>
-
appended
-
appended
-
appended
-
appendedSlash
-
appendedSegment
-
prepended
-
prepended
-
prepended
-
prependedSlash
-
prependedSegment
-
resolve
-
removeDotSegments
-
merge
-
unmerge
-
toArray
- Specified by:
toArrayin interfaceCollection<String>
-
toArray
public <T> T[] toArray(T[] array) - Specified by:
toArrayin interfaceCollection<String>
-
iterator
-
compareTo
- Specified by:
compareToin interfaceComparable<UriPath>
-
equals
- Specified by:
equalsin interfaceCollection<String>- Overrides:
equalsin classObject
-
hashCode
public final int hashCode()- Specified by:
hashCodein interfaceCollection<String>- Overrides:
hashCodein classObject
-
debug
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput. -
display
Description copied from interface:DisplayWrites a human readable, display-formatted string representation of this object tooutput. -
toString
-
empty
-
slash
-
segment
-
component
-
of
-
from
-
builder
-
parse
-
pathForm
-