L
- the left argument type.R
- the right argument type.public final class IsElementOf<L,R> extends Object implements BinaryPredicate<L,R>
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> Predicate<A> |
instance(Object obj)
Get an IsElementOf(collection|array) Predicate.
|
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()
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.