public abstract class AbstractPersistentAcceptOnceFileListFilter<F> extends AbstractFileListFilter<F>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
prefix |
protected MetadataStore |
store |
| Constructor and Description |
|---|
AbstractPersistentAcceptOnceFileListFilter(MetadataStore store,
java.lang.String prefix) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(F file)
Subclasses must implement this method.
|
protected java.lang.String |
buildKey(F file)
The default key is the
prefix plus the full filename. |
protected abstract java.lang.String |
fileName(F file) |
protected boolean |
isEqual(F file,
java.lang.String value)
Override this method if you wish to use something other than the
modified timestamp to determine equality.
|
protected abstract long |
modified(F file) |
filterFilesprotected final MetadataStore store
protected final java.lang.String prefix
public AbstractPersistentAcceptOnceFileListFilter(MetadataStore store, java.lang.String prefix)
protected boolean accept(F file)
AbstractFileListFilteraccept in class AbstractFileListFilter<F>protected boolean isEqual(F file, java.lang.String value)
file - The file.value - The current value for the key in the store.protected java.lang.String buildKey(F file)
prefix plus the full filename.file - The file.protected abstract long modified(F file)
protected abstract java.lang.String fileName(F file)