org.eclipse.jpt.common.utility
Class Filter.Opaque<S>
java.lang.Object
org.eclipse.jpt.common.utility.Filter.Opaque<S>
- All Implemented Interfaces:
- java.io.Serializable, Filter<S>
- Enclosing interface:
- Filter<T>
public static final class Filter.Opaque<S>
- extends java.lang.Object
- implements Filter<S>, java.io.Serializable
Singleton implemetation of the filter interface that accepts none of the
objects (i.e. it filters out all the objects).
- See Also:
- Serialized Form
|
Method Summary |
boolean |
accept(S o)
Return whether the specified object is "accepted" by the
filter. |
static
|
instance()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INSTANCE
public static final Filter INSTANCE
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