public final class DynamicPath extends Object
Constructor and Description |
---|
DynamicPath(String path) |
Modifier and Type | Method and Description |
---|---|
List<File> |
getAllFiles()
Gets all files that are compatible with the dynamic path.
|
boolean |
isValid(File file)
Checks if an already existing file is compatible with this dynamic path.
|
String |
resolve()
Resolves all patterns and generates a real path for a (new) file.
|
public DynamicPath(String path)
path
- Path with patternspublic String resolve()
public List<File> getAllFiles()
public boolean isValid(File file)
file
- File to checktrue
if passed file is compatible, false
if notCopyright © 2020. All rights reserved.