org.eclipse.jpt.utility
Class Filter.Null<S>

java.lang.Object
  extended by org.eclipse.jpt.utility.Filter.Null<S>
All Implemented Interfaces:
java.io.Serializable, Filter<S>
Enclosing interface:
Filter<T>

public static final class Filter.Null<S>
extends java.lang.Object
implements Filter<S>, java.io.Serializable

Singleton implemetation of the filter interface that accepts all the objects (i.e. it does no filtering).

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.utility.Filter
Filter.Disabled<S>, Filter.Null<S>, Filter.Opaque<S>
 
Field Summary
static Filter INSTANCE
           
 
Method Summary
 boolean accept(S o)
          Return whether the specified object is "accepted" by the filter.
static
<R> Filter<R>
instance()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final Filter INSTANCE
Method Detail

instance

public static <R> Filter<R> instance()

accept

public boolean accept(S o)
Description copied from interface: Filter
Return 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<S>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object