org.entityfs.support.filter
Interface Filter<T>

All Superinterfaces:
Cloneable
All Known Subinterfaces:
ConvenientFilter<T>, EntityFilter
All Known Implementing Classes:
AbstractConvenientFilter, AndFilter, DirectoryAEF, DirectoryContainsFilter, DirectoryEmptyFilter, DirectoryETAF, DirectoryFilter, EFileFilter, EFileNameExtensionFilter, EntityFilterToEntityAndRelativeLocationFilterAdapter, EntityIdentityFilter, EntityLatestModificationTimeFilter, EntityLocationGlobFilter, EntityLocationRegexpFilter, EntityNameFilter, EntityNameGlobFilter, EntityNamePrefixFilter, EntityNameRegexpFilter, EntityRecentModificationFilter, EntityTypeETAF, EntityTypeFilter, FalseAEF, FalseEntityFilter, FalseETAF, FalseFilter, FalseProjectFilter, FGrepFilter, FileAEF, FileETAF, FilterToConvenientFilterAdapter, GrepFilter, JavaProjectFilter, LockedEntityFilter, NameETAF, NameGlobAEF, NameGlobETAF, NotFilter, OrFilter, ParentFilter, ProjectNameFilter, ProjectNameGlobFilter, ProjectNameInCollectionFilter, ProjectNameRegexpFilter, ProjectTypeFilter, ReadLockedEntityFilter, SuperParentAndFilter, SuperParentOrFilter, TarDirectoryEntryFilter, TarEntryNameFilter, TarEntryNameGlobFilter, TarFileEntryFilter, TrueAEF, TrueEntityFilter, TrueETAF, TrueFilter, TrueProjectFilter, WriteLockedEntityFilter, XorFilter

public interface Filter<T>
extends Cloneable

This interface defines a generic filter that can match or not match an object. All filter implementations in EntityFS also implement the ConvenientFilter interface, which defines methods for combining different filters.

A filter instance should preferably be immutable.

Since:
1.1
Author:
Karl Gustafsson

Method Summary
 boolean matches(T object)
          Does the filter match the object?
 

Method Detail

matches

boolean matches(T object)
Does the filter match the object?

Parameters:
object - The object to match.
Returns:
true if the filter matches the object.