org.schmant.project.java
Class JavaProjectFilter

java.lang.Object
  extended by org.entityfs.support.filter.AbstractConvenientFilter<Project>
      extended by org.schmant.project.java.JavaProjectFilter
All Implemented Interfaces:
Cloneable, ConvenientFilter<Project>, Filter<Project>, ProjectFilter

public final class JavaProjectFilter
extends AbstractConvenientFilter<Project>
implements ProjectFilter

This is a filter that matches Java projects. (Projects of the type JavaProjectType.)

Instead of instantiating this filter, the singleton instance INSTANCE may be used.

Since:
0.8
Author:
Karl Gustafsson
See Also:
ProjectTypeFilter

Field Summary
static JavaProjectFilter FILTER
          An alias for the singleton instance.
static JavaProjectFilter INSTANCE
          The singleton instance
 
Constructor Summary
JavaProjectFilter()
           
 
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
 

Field Detail

INSTANCE

public static final JavaProjectFilter INSTANCE
The singleton instance


FILTER

public static final JavaProjectFilter FILTER
An alias for the singleton instance.

Constructor Detail

JavaProjectFilter

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