Package com.swoval.files
Interface TypedPath
-
public interface TypedPathA mix-in for an object that represents a file system path. Provides (possibly) fast accessors for the type of the file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists()Does this path exist?java.nio.file.PathgetPath()Return the path.booleanisDirectory()Is the path represented by this a directory?booleanisFile()Is the path represented by this a regular file?booleanisSymbolicLink()Is the path represented by this a symbolic link?
-
-
-
Method Detail
-
getPath
java.nio.file.Path getPath()
Return the path.- Returns:
- the path.
-
exists
boolean exists()
Does this path exist?- Returns:
- true when the path exists.
-
isDirectory
boolean isDirectory()
Is the path represented by this a directory?- Returns:
- true if the underlying path is a directory
-
isFile
boolean isFile()
Is the path represented by this a regular file?- Returns:
- true if the underlying path is a regular file
-
isSymbolicLink
boolean isSymbolicLink()
Is the path represented by this a symbolic link?- Returns:
- true if the underlying path is a symbolic link
-
-