EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql.util.filter
Class NullFilter

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.util.filter.NullFilter
All Implemented Interfaces:
Filter<java.lang.Object>

public final class NullFilter
extends java.lang.Object
implements Filter<java.lang.Object>

A null implementation of a Filter. The singleton instance can be typed cast properly when using generics.

Version:
2.3
Author:
Pascal Filion
Since:
2.3

Method Summary
 boolean accept(java.lang.Object value)
          Determines whether the specified object is "accepted" by the filter.
static
<T> Filter<T>
instance()
          Returns the singleton instance of this NullFilter.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

instance

public static <T> Filter<T> instance()
Returns the singleton instance of this NullFilter.

Returns:
The singleton instance

accept

public boolean accept(java.lang.Object value)
Determines whether the specified object is "accepted" by the filter. The semantics of "accept" is determined by the contract between the client and the server.

Specified by:
accept in interface Filter<java.lang.Object>
Parameters:
value - The value to filter
Returns:
true if the given value is "accepted" by this filter; false if it was "rejected"

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference