public abstract class BasePath<T extends BasePath<T,FS>,FS extends BaseFileSystem<T>> extends Object implements Path
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
names |
protected String |
root |
| Constructor and Description |
|---|
BasePath(FS fileSystem,
String root,
List<String> names) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
asString() |
protected T |
asT() |
protected int |
calculatedHashCode() |
protected T |
checkPath(Path paramPath) |
protected int |
compare(String s1,
String s2) |
int |
compareTo(Path paramPath) |
protected T |
create(String root,
Collection<String> names) |
protected T |
create(String root,
List<String> names) |
protected T |
create(String root,
String... names) |
protected boolean |
endsWith(List<?> list,
List<?> other) |
boolean |
endsWith(Path other) |
boolean |
endsWith(String other) |
boolean |
equals(Object obj) |
T |
getFileName() |
FS |
getFileSystem() |
T |
getName(int index) |
int |
getNameCount() |
T |
getParent() |
T |
getRoot() |
int |
hashCode() |
boolean |
isAbsolute() |
protected boolean |
isNormal() |
Iterator<Path> |
iterator() |
T |
normalize() |
WatchKey |
register(WatchService watcher,
WatchEvent.Kind<?>... events) |
WatchKey |
register(WatchService watcher,
WatchEvent.Kind<?>[] events,
WatchEvent.Modifier... modifiers) |
T |
relativize(Path other) |
T |
resolve(Path other) |
T |
resolve(String other) |
Path |
resolveSibling(Path other) |
Path |
resolveSibling(String other) |
protected boolean |
startsWith(List<?> list,
List<?> other) |
boolean |
startsWith(Path other) |
boolean |
startsWith(String other) |
T |
subpath(int beginIndex,
int endIndex) |
T |
toAbsolutePath() |
File |
toFile() |
String |
toString() |
URI |
toUri() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waittoRealPathforEach, spliteratorprotected T asT()
protected T create(String root, Collection<String> names)
public FS getFileSystem()
getFileSystem in interface Pathpublic boolean isAbsolute()
isAbsolute in interface Pathpublic T getFileName()
getFileName in interface Pathpublic int getNameCount()
getNameCount in interface Pathpublic boolean startsWith(Path other)
startsWith in interface Pathpublic boolean startsWith(String other)
startsWith in interface Pathprotected boolean isNormal()
public Path resolveSibling(Path other)
resolveSibling in interface Pathpublic Path resolveSibling(String other)
resolveSibling in interface Pathpublic T relativize(Path other)
relativize in interface Pathpublic T toAbsolutePath()
toAbsolutePath in interface Pathpublic WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) throws IOException
register in interface Pathregister in interface WatchableIOExceptionpublic WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException
register in interface Pathregister in interface WatchableIOExceptionpublic int compareTo(Path paramPath)
compareTo in interface Comparable<Path>compareTo in interface Pathpublic int hashCode()
protected int calculatedHashCode()
public boolean equals(Object obj)
public String toString()
protected String asString()
Copyright © 2018–2020 The Apache Software Foundation. All rights reserved.