org.at4j.archive.builder
Class FileETAF

java.lang.Object
  extended by org.entityfs.support.filter.AbstractConvenientFilter<EntryToArchive>
      extended by 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.
 
Constructor Summary
FileETAF()
           
 
Method Summary
 ConvenientFilter<EntryToArchive> and(Filter<? super EntryToArchive> f)
          Combines the two filters using the logical AND operation and returns the combined filter.
 boolean matches(EntryToArchive object)
          Does the filter match the object?
 
Methods inherited from class org.entityfs.support.filter.AbstractConvenientFilter
bitwiseNegate, isCase, not, or, xor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

FileETAF

public FileETAF()
Method Detail

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.