public abstract class MemberOfFunction<E> extends java.lang.Object implements UnaryFunction<E,java.lang.Boolean>
Created on Feb 4, 2004 at 4:48:55 PM.
Modifier and Type | Class and Description |
---|---|
static class |
MemberOfFunction.InstanceOf |
Constructor and Description |
---|
MemberOfFunction() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
apply(E x)
Implementation of
UnaryFunction method defering to
#isMember(E) . |
abstract boolean |
isMember(E o)
A unary function that tests whether an element is the member of a set.
|
public abstract boolean isMember(E o)
o
- element to testtrue
if element is a memberpublic final java.lang.Boolean apply(E x)
UnaryFunction
method defering to
#isMember(E)
.apply
in interface UnaryFunction<E,java.lang.Boolean>
apply
in interface UnaryFunctionEx<E,java.lang.Boolean>
x
- element to testBoolean.TRUE
if isMemeber returns true
,
false
otherwise