Skip navigation links
org.eclipse.persistence.jpa.internal.jpql.util
Class NullFilter
java.lang.Object
org.eclipse.persistence.jpa.internal.jpql.util.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.
- Since:
- 2.3
- Version:
- 2.3
- Author:
- Pascal Filion
Field Summary |
private static NullFilter |
INSTANCE
The singleton instance of this NullFilter . |
Constructor Summary |
private |
NullFilter()
Creates a new NullFilter . |
Method Summary |
boolean |
accept(java.lang.Object value)
Determines whether the specified object is "accepted" by the filter. |
static
|
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 |
INSTANCE
private static final NullFilter INSTANCE
- The singleton instance of this
NullFilter
.
NullFilter
private NullFilter()
- Creates a new
NullFilter
.
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
Skip navigation links