org.schmant.project.filter
Class ProjectNameInCollectionFilter

java.lang.Object
  extended by org.entityfs.support.filter.AbstractConvenientFilter<Project>
      extended by 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

Constructor Summary
ProjectNameInCollectionFilter(Collection<String> c)
          Create a case sensitive filter that will match projects who's name occur in the collection.
 
Method Summary
 boolean matches(Project p)
          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

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.
Method Detail

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.