public class InstalledFilter extends Object implements Filter<ExtensionsFile>
Settings
object is used to keep track of which files are
installed and not.Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
log |
private Filter<ExtensionsFile> |
parent |
private Settings |
settings |
Constructor and Description |
---|
InstalledFilter(Settings settings)
Create a new filter.
|
InstalledFilter(Settings settings,
Filter<ExtensionsFile> parent)
Create a new filter with an optional chained parent filted.
|
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 Settings settings
private final Filter<ExtensionsFile> parent
public InstalledFilter(Settings settings)
settings
- The settings object to use when checking if a file is installed or notpublic InstalledFilter(Settings settings, Filter<ExtensionsFile> parent)
settings
- The settings object to use when checking if a file is installed or notparent
- An optional parent filter that will also be checkedpublic boolean evaluate(ExtensionsFile xtFile)
Filter
evaluate
in interface Filter<ExtensionsFile>
xtFile
- The object to evaluate