org.at4j.archive.builder
Class FileETAF
java.lang.Object
org.entityfs.support.filter.AbstractConvenientFilter<EntryToArchive>
org.at4j.archive.builder.FileETAF
- All Implemented Interfaces:
- Cloneable, EntityToArchiveFilter, ConvenientFilter<EntryToArchive>, Filter<EntryToArchive>
public final class FileETAF
- extends AbstractConvenientFilter<EntryToArchive>
- implements EntityToArchiveFilter
This filter returns true of the entity is a file.
"ETAF" stands for EntryToArchiveFilter
- Since:
- 1.0
- Author:
- Karl Gustafsson
- See Also:
DirectoryETAF
Field Summary |
static FileETAF |
FILTER
Since this object does not contain any internal state, this singleton
instance may be used instead of creating new objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILTER
public static final FileETAF FILTER
- Since this object does not contain any internal state, this singleton
instance may be used instead of creating new objects.
FileETAF
public FileETAF()
and
public ConvenientFilter<EntryToArchive> and(Filter<? super EntryToArchive> f)
- Description copied from interface:
ConvenientFilter
- Combines the two filters using the logical AND operation and returns the
combined filter.
- Specified by:
and
in interface ConvenientFilter<EntryToArchive>
- Overrides:
and
in class AbstractConvenientFilter<EntryToArchive>
- Parameters:
f
- The filter to combine this filter with.
- Returns:
- The combined filter.
matches
public boolean matches(EntryToArchive object)
- Description copied from interface:
Filter
- Does the filter match the object?
- Specified by:
matches
in interface Filter<EntryToArchive>
- Parameters:
object
- The object to match.
- Returns:
true
if the filter matches the object.