P
- the type of the implementing classpublic abstract class AbstractImmutableListPath<P extends AbstractImmutableListPath<P>> extends BasePath<P>
Path
implementation backed by an ImmutableList
of
segments.
This class implements most path operation that function independently of the
file system. Subclasses must implement file system specific operation, like
toUri
and toRealPath
. Subclasses may also override other methods on the class to
change functionality or implement features more efficiently.
Modifier | Constructor and Description |
---|---|
protected |
AbstractImmutableListPath(ImmutableListPathCore core) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Path p) |
boolean |
endsWith(Path other) |
abstract boolean |
equals(Object obj) |
protected ImmutableListPathCore |
getCore() |
Path |
getFileName() |
Path |
getName(int index) |
int |
getNameCount() |
Path |
getParent() |
Path |
getRoot() |
abstract int |
hashCode() |
boolean |
isAbsolute() |
protected abstract P |
newPath(ImmutableListPathCore newCore) |
Path |
normalize() |
Path |
relativize(Path other) |
Path |
resolve(Path other) |
Path |
resolveSibling(Path other) |
boolean |
startsWith(Path other) |
Path |
subpath(int beginIndex,
int endIndex) |
Path |
toAbsolutePath() |
String |
toString() |
URI |
toUri() |
endsWith, getFileSystem, iterator, register, register, resolve, resolveSibling, startsWith, toFile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toRealPath
forEach, spliterator
protected AbstractImmutableListPath(ImmutableListPathCore core)
public boolean isAbsolute()
public Path getRoot()
public Path getParent()
public Path getFileName()
public int getNameCount()
public Path getName(int index)
public Path subpath(int beginIndex, int endIndex)
public boolean startsWith(Path other)
public boolean endsWith(Path other)
public Path normalize()
public Path toAbsolutePath()
public URI toUri()
public final String toString()
public int compareTo(Path p)
public abstract int hashCode()
public abstract boolean equals(Object obj)
protected final ImmutableListPathCore getCore()
protected abstract P newPath(ImmutableListPathCore newCore)