public class ValidAndNewOrModifiedFilter extends Object implements Filter<ExtensionsFile>
Modifier and Type | Field and Description |
---|---|
private boolean |
allowUnmodified |
private static org.slf4j.Logger |
log |
private Filter<ExtensionsFile> |
parent |
Constructor and Description |
---|
ValidAndNewOrModifiedFilter(boolean allowUnmodified)
Create a new filter.
|
ValidAndNewOrModifiedFilter(boolean allowUnmodified,
Filter<ExtensionsFile> parent)
Create a new filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(ExtensionsFile xtFile)
Evaluate if the given object should pass the filter or not.
|
private static final org.slf4j.Logger log
private final boolean allowUnmodified
private final Filter<ExtensionsFile> parent
public ValidAndNewOrModifiedFilter(boolean allowUnmodified)
allowUnmodified
- TRUE to allow unmodified files to
pass the filter, FALSE to block thempublic ValidAndNewOrModifiedFilter(boolean allowUnmodified, Filter<ExtensionsFile> parent)
allowUnmodified
- TRUE to allow unmodified files to
pass the filter, FALSE to block themparent
- An optional parent filter that will also be checkedpublic boolean evaluate(ExtensionsFile xtFile)
Filter
evaluate
in interface Filter<ExtensionsFile>
xtFile
- The object to evaluate