L - the left argument type.R - the right argument type.public final class IsElementOf<L,R> extends Object implements BinaryPredicate<L,R>, Serializable
BinaryPredicate that checks to see if the
specified object is an element of the specified
Collection.| Constructor and Description |
|---|
IsElementOf()
Create a new IsElementOf.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
static IsElementOf<Object,Object> |
instance()
Get an IsElementOf instance.
|
static <A> UnaryPredicate<A> |
instance(Object obj)
Get an IsElementOf(collection|array) UnaryPredicate.
|
boolean |
test(L obj,
R col)
Evaluate this predicate.
|
String |
toString() |
public IsElementOf()
public boolean test(L obj, R col)
test in interface BinaryPredicate<L,R>obj - the L element of the ordered pair of argumentscol - the R element of the ordered pair of argumentspublic static IsElementOf<Object,Object> instance()
public static <A> UnaryPredicate<A> instance(Object obj)
A - the UnaryPredicate argument generic typeobj - collection/array to searchCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.