public abstract class AbstractFilePredicate extends Object implements OptimizedFilePredicate
OptimizedFilePredicate
.Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_PRIORITY |
protected static int |
USE_INDEX |
Constructor and Description |
---|
AbstractFilePredicate() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(OptimizedFilePredicate o) |
Iterable<InputFile> |
filter(Iterable<InputFile> target)
Filter provided files to keep only the ones that are valid for this predicate
|
Iterable<InputFile> |
get(FileSystem.Index index)
Get all files that are valid for this predicate.
|
int |
priority()
For optimization.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
protected static final int DEFAULT_PRIORITY
protected static final int USE_INDEX
public AbstractFilePredicate()
public Iterable<InputFile> filter(Iterable<InputFile> target)
OptimizedFilePredicate
filter
in interface OptimizedFilePredicate
public Iterable<InputFile> get(FileSystem.Index index)
OptimizedFilePredicate
get
in interface OptimizedFilePredicate
public int priority()
OptimizedFilePredicate
RelativePathPredicate
and AbsolutePathPredicate have a high priority since they are using cache index.priority
in interface OptimizedFilePredicate
public final int compareTo(OptimizedFilePredicate o)
compareTo
in interface Comparable<OptimizedFilePredicate>
Copyright © 2009–2018 SonarSource. All rights reserved.