org.at4j.archive
Class NameGlobAEF

java.lang.Object
  extended by org.entityfs.support.filter.AbstractConvenientFilter<ArchiveEntry<?,?>>
      extended by org.at4j.archive.NameGlobAEF
All Implemented Interfaces:
Cloneable, ArchiveEntryFilter, ConvenientFilter<ArchiveEntry<?,?>>, Filter<ArchiveEntry<?,?>>

public final class NameGlobAEF
extends AbstractConvenientFilter<ArchiveEntry<?,?>>
implements ArchiveEntryFilter

This is a filter that matches entry names that match a Glob pattern.

"AEF" stands for ArchiveEntryFilter.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
NameGlobAEF(Glob pattern)
           
 
Method Summary
 boolean matches(ArchiveEntry<?,?> object)
          Does the filter match the object?
 
Methods inherited from class org.entityfs.support.filter.AbstractConvenientFilter
and, bitwiseNegate, isCase, not, or, xor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameGlobAEF

public NameGlobAEF(Glob pattern)
Method Detail

matches

public boolean matches(ArchiveEntry<?,?> object)
Description copied from interface: Filter
Does the filter match the object?

Specified by:
matches in interface Filter<ArchiveEntry<?,?>>
Parameters:
object - The object to match.
Returns:
true if the filter matches the object.