Top Description Fields Constructors Methods
org.eclipse.persistence.jpa.jpql.utility.filter

public final Class NullFilter

extends Object
implements Filter<Object>
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.jpa.jpql.utility.filter.Filter

A null implementation of a Filter. The singleton instance can be typed cast properly when using generics.
Author
Pascal Filion
Since
2.3
Version
2.3

Field Summary

Modifier and TypeField and Description
private static final NullFilter
INSTANCE

The singleton instance of this NullFilter.

Constructor Summary

AccessConstructor and Description
private
NullFilter()

Creates a new NullFilter.

Method Summary

Modifier and TypeMethod and Description
public boolean
accept(Object
The value to filter
value
)

Implements org.eclipse.persistence.jpa.jpql.utility.filter.Filter.accept.

Determines whether the specified object is "accepted" by the filter.
public static <T> Filter<T>

Returns:

The singleton instance
instance
()

Returns the singleton instance of this NullFilter.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

INSTANCEback to summary
private static final NullFilter INSTANCE

The singleton instance of this NullFilter.

Constructor Detail

NullFilterback to summary
private NullFilter()

Creates a new NullFilter.

Method Detail

acceptback to summary
public boolean accept(Object value)

Implements org.eclipse.persistence.jpa.jpql.utility.filter.Filter.accept.

Doc from org.eclipse.persistence.jpa.jpql.utility.filter.Filter.accept.

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.

Parameters
value:Object

The value to filter

Returns:boolean

true if the given value is "accepted" by this filter; false if it was "rejected"

Annotations
@Override
instanceback to summary
public static <T> Filter<T> instance()

Returns the singleton instance of this NullFilter.

Returns:Filter<T>

The singleton instance

Annotations
@SuppressWarnings:unchecked
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override