Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


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

java.lang.Object
  extended by 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
<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

 

Field Detail

INSTANCE

private static final NullFilter INSTANCE
The singleton instance of this NullFilter.

Constructor Detail

NullFilter

private NullFilter()
Creates a new NullFilter.

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

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.