org.entityfs.support.filter
Class FalseFilter<T>

java.lang.Object
  extended by org.entityfs.support.filter.FalseFilter<T>
All Implemented Interfaces:
Cloneable, ConvenientFilter<T>, Filter<T>
Direct Known Subclasses:
FalseAEF, FalseEntityFilter, FalseETAF, FalseProjectFilter

public class FalseFilter<T>
extends Object
implements ConvenientFilter<T>

This filter does not match any objects at all.

Since:
1.1
Author:
Karl Gustafsson

Constructor Summary
FalseFilter()
           
 
Method Summary
 ConvenientFilter<T> and(Filter<? super T> filter)
          Combines the two filters using the logical AND operation and returns the combined filter.
 ConvenientFilter<T> bitwiseNegate()
          This method delegates to not()
 boolean equals(Object o)
           
 int hashCode()
           
 boolean matches(T object)
          Does the filter match the object?
 ConvenientFilter<T> not()
          Creates a filter that negates the result from this filter.
 ConvenientFilter<T> or(Filter<? super T> filter)
          Combines the two filters using the logical OR operation and returns the combined filter.
 String toString()
           
 ConvenientFilter<T> xor(Filter<? super T> filter)
          Combines the two filters using the logical XOR operation and returns the combined filter.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FalseFilter

public FalseFilter()
Method Detail

and

public ConvenientFilter<T> and(Filter<? super T> filter)
Description copied from interface: ConvenientFilter
Combines the two filters using the logical AND operation and returns the combined filter.

Specified by:
and in interface ConvenientFilter<T>
Parameters:
filter - The filter to combine this filter with.
Returns:
The combined filter.

not

public ConvenientFilter<T> not()
Description copied from interface: ConvenientFilter
Creates a filter that negates the result from this filter.

A filter implementing this method is also recommended to implement a method called bitwiseNegate that delegates to this method. That makes it possible to negate the filter using the ~ operator in a Groovy script.

Specified by:
not in interface ConvenientFilter<T>
Returns:
A filter that negates the result from this filter.

bitwiseNegate

public final ConvenientFilter<T> bitwiseNegate()
This method delegates to not()

Since:
1.1.3

or

public ConvenientFilter<T> or(Filter<? super T> filter)
Description copied from interface: ConvenientFilter
Combines the two filters using the logical OR operation and returns the combined filter.

Specified by:
or in interface ConvenientFilter<T>
Parameters:
filter - The filter to combine this filter with.
Returns:
The combined filter.

xor

public ConvenientFilter<T> xor(Filter<? super T> filter)
Description copied from interface: ConvenientFilter
Combines the two filters using the logical XOR operation and returns the combined filter.

Specified by:
xor in interface ConvenientFilter<T>
Parameters:
filter - The filter to combine this filter with.
Returns:
The combined filter.

matches

public boolean matches(T object)
Description copied from interface: Filter
Does the filter match the object?

Specified by:
matches in interface Filter<T>
Parameters:
object - The object to match.
Returns:
false

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object