Class RefPath
java.lang.Object
io.github.vampirestudios.vampirelib.api.datagen.RefPath
-
Constructor Summary
ConstructorsConstructorDescriptionRefPath(FileSystem fileSystem, String key, boolean absolute, String... pathParts) RefPath(FileSystem fileSystem, String key, String... pathParts) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanboolean@NotNull FileSystem@NotNull PathgetName(int index) intgetRoot()inthashCode()boolean@NotNull Path@NotNull WatchKeyregister(@NotNull WatchService watcher, @NotNull WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) @NotNull Pathrelativize(@NotNull Path other) @NotNull PathbooleanstartsWith(@NotNull Path other) @NotNull RefPathsubpath(int beginIndex, int endIndex) @NotNull Path@NotNull PathtoRealPath(@NotNull LinkOption... options) toString()@NotNull URItoUri()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.nio.file.Path
endsWith, iterator, register, resolve, resolveSibling, resolveSibling, startsWith, toFile
-
Constructor Details
-
RefPath
-
RefPath
-
-
Method Details
-
getFileSystem
- Specified by:
getFileSystemin interfacePath
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolutein interfacePath
-
getRoot
-
getFileName
- Specified by:
getFileNamein interfacePath
-
getParent
-
getNameCount
public int getNameCount()- Specified by:
getNameCountin interfacePath
-
getName
-
subpath
-
startsWith
- Specified by:
startsWithin interfacePath
-
endsWith
-
normalize
-
resolve
-
relativize
- Specified by:
relativizein interfacePath
-
toUri
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath
-
toRealPath
@NotNull public @NotNull Path toRealPath(@NotNull @NotNull LinkOption... options) throws IOException - Specified by:
toRealPathin interfacePath- Throws:
IOException
-
register
@NotNull public @NotNull WatchKey register(@NotNull @NotNull WatchService watcher, @NotNull @NotNull WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException - Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
compareTo
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath
-
equals
-
hashCode
public int hashCode() -
toString
-