public class FileFilterAdapter extends AbstractFilter<File> implements Filter<File>, FileFilter
onCandidate(File)
call to the supplied FileFilter
delegate.log, TOSTRING_INDENT
Constructor and Description |
---|
FileFilterAdapter(FileFilter delegate)
Compound constructor, creating a FileFilterAdapter using the supplied
FileFilter to determine if
candidate Files should be accepted. |
Modifier and Type | Method and Description |
---|---|
boolean |
isInitialized() |
protected boolean |
onCandidate(File nonNullCandidate)
Method that is invoked to determine if a candidate instance should be accepted or not.
|
void |
setDelegate(FileFilter delegate)
Assigns the supplied FileFilter delegate.
|
accept, addDelayedLogMessage, initialize, onInitialize, onNullCandidate, setProcessNullValues, toString, validateDiSetterCalledBeforeInitialization
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, initialize
accept
public FileFilterAdapter(FileFilter delegate)
FileFilter
to determine if
candidate Files should be accepted.delegate
- The delegate FileFilter.public boolean isInitialized()
isInitialized
in interface Filter<File>
isInitialized
in class AbstractFilter<File>
true
if this Filter has been properly initialized (by a call to the initialize
method).public void setDelegate(FileFilter delegate)
delegate
- A non-null FileFilter instance.protected boolean onCandidate(File nonNullCandidate)
Method that is invoked to determine if a candidate instance should be accepted or not.
onCandidate
in class AbstractFilter<File>
nonNullCandidate
- The candidate that should be tested for acceptance by this Filter. Never null.true
if the candidate is accepted by this Filter and false
otherwise.Copyright © 2005–2017 MojoHaus. All rights reserved.