public static interface RelativePathBase.Settings
Modifier and Type | Method and Description |
---|---|
StringBuilder |
appendPathForBaseDir(StringBuilder result,
File baseDir)
Appends the path for a file that equals the base directory.
|
StringBuilder |
appendPrefixForChildren(StringBuilder result,
File baseDir,
boolean directChildOfBase)
Appends the path prefix for children of the base directory.
|
StringBuilder |
appendPrefixToCommonAncestor(StringBuilder result,
File baseDir,
int levelsToCommonAncestor)
Appends the path prefix from the base directory to the common
ancestor of base directory and target file.
|
StringBuilder appendPathForBaseDir(StringBuilder result, File baseDir)
result
- the string builder with the result pathbaseDir
- the base directory, here also the relative path targetresult
instance for chained invocationsStringBuilder appendPrefixForChildren(StringBuilder result, File baseDir, boolean directChildOfBase)
result
- the string builder with the result pathbaseDir
- the base directory, here a parent directory of the
relative path targetresult
instance for chained invocationsStringBuilder appendPrefixToCommonAncestor(StringBuilder result, File baseDir, int levelsToCommonAncestor)
result
- the string builder with the result pathbaseDir
- the base directory, here a directory which has a common
ancestor with the relative path targetresult
instance for chained invocationsCopyright © 2024. All rights reserved.