org.eclipse.jpt.utility
Class Filter.Disabled<S>
java.lang.Object
org.eclipse.jpt.utility.Filter.Disabled<S>
- All Implemented Interfaces:
- Filter<S>
- Enclosing interface:
- Filter<T>
public static final class Filter.Disabled<S>
- extends java.lang.Object
- implements Filter<S>
Singleton implemetation of the filter interface that throws an exception
if called.
|
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