org.at4j.archive.builder
Class DirectoryETAF

java.lang.Object
  extended by org.entityfs.support.filter.AbstractConvenientFilter<EntryToArchive>
      extended by org.at4j.archive.builder.DirectoryETAF
All Implemented Interfaces:
Cloneable, EntityToArchiveFilter, ConvenientFilter<EntryToArchive>, Filter<EntryToArchive>

public final class DirectoryETAF
extends AbstractConvenientFilter<EntryToArchive>
implements EntityToArchiveFilter

This filter returns true of the entity is a directory.

"ETAF" stands for EntryToArchiveFilter

Since:
1.0
Author:
Karl Gustafsson
See Also:
FileETAF

Field Summary
static DirectoryETAF FILTER
          Since this object does not contain any internal state, this singleton instance may be used instead of creating new objects.
 
Constructor Summary
DirectoryETAF()
           
 
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 DirectoryETAF FILTER
Since this object does not contain any internal state, this singleton instance may be used instead of creating new objects.

Constructor Detail

DirectoryETAF

public DirectoryETAF()
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.