public class RelativePathPredicate extends AbstractFilePredicate
DEFAULT_PRIORITY, USE_INDEX
Modifier and Type | Method and Description |
---|---|
boolean |
apply(InputFile f)
Test if provided file is valid for this predicate
|
java.lang.Iterable<InputFile> |
get(FileSystem.Index index)
Get all files that are valid for this predicate.
|
java.lang.String |
path() |
int |
priority()
For optimization.
|
compareTo, filter
public java.lang.String path()
public boolean apply(InputFile f)
FilePredicate
public java.lang.Iterable<InputFile> get(FileSystem.Index index)
OptimizedFilePredicate
get
in interface OptimizedFilePredicate
get
in class AbstractFilePredicate
public int priority()
OptimizedFilePredicate
RelativePathPredicate
and AbsolutePathPredicate have a high priority since they are using cache index.priority
in interface OptimizedFilePredicate
priority
in class AbstractFilePredicate