Class AbsolutePath
java.lang.Object
de.tomatengames.util.io.AbsolutePath
- Since:
- 1.6
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(AbsolutePath path) contains(AbsolutePath, boolean)with allowSame=false.booleancontains(AbsolutePath path, boolean allowSame) Returns whether the specified path is inside this path.static AbsolutePathReturns anAbsolutePaththat represents the absolute and direct equivalentPath.static AbsolutePathReturns anAbsolutePaththat represents the absolute and direct equivalentPath.getPath()Returns this AbsolutePath as aPath.resolveInside(String subpath) Returns the path inside this path resolved from the specified subpath.resolveInside(String subpath, boolean allowSame) Returns the path inside this path resolved from the specified subpath.toString()
-
Method Details
-
get
Returns anAbsolutePaththat represents the absolute and direct equivalentPath.- Parameters:
path- the input path name- Returns:
- the
AbsolutePathof the specified path
-
get
Returns anAbsolutePaththat represents the absolute and direct equivalentPath.- Parameters:
path- the inputPath- Returns:
- the
AbsolutePathof the specified path
-
getPath
-
toString
-
contains
contains(AbsolutePath, boolean)with allowSame=false.- Parameters:
path- the path- Returns:
- whether the specified path is inside this path
-
contains
Returns whether the specified path is inside this path.- Parameters:
path- the pathallowSame- whether to return true if the specified path equals this path- Returns:
- whether the specified path is inside this path.
-
resolveInside
Returns the path inside this path resolved from the specified subpath.- Parameters:
subpath- the subpath to resolve- Returns:
- the resolved path
- Throws:
InvalidPathException- if the resolved path is not inside this path- See Also:
-
resolveInside
Returns the path inside this path resolved from the specified subpath.- Parameters:
subpath- the subpath to resolveallowSame- whether to accept the resolved path if it equals this path- Returns:
- the resolved path
- Throws:
InvalidPathException- if the resolved path is not inside this path- See Also:
-