org.schmant.project.filter
Class ProjectNameInCollectionFilter
java.lang.Object
org.entityfs.support.filter.AbstractConvenientFilter<Project>
org.schmant.project.filter.ProjectNameInCollectionFilter
- All Implemented Interfaces:
- Cloneable, ConvenientFilter<Project>, Filter<Project>, ProjectFilter
public final class ProjectNameInCollectionFilter
- extends AbstractConvenientFilter<Project>
- implements ProjectFilter
A ProjectFilter
that matches projects whose names occur in a Collection
.
- Since:
- 0.5
- Author:
- Karl Gustafsson
Method Summary |
boolean |
matches(Project p)
Does the filter match the object? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectNameInCollectionFilter
public ProjectNameInCollectionFilter(Collection<String> c)
- Create a case sensitive filter that will match projects who's name occur
in the collection.
- Parameters:
c
- The name collection.
matches
public boolean matches(Project p)
- Description copied from interface:
Filter
- Does the filter match the object?
- Specified by:
matches
in interface Filter<Project>
- Parameters:
p
- The object to match.
- Returns:
true
if the filter matches the object.