T - the object instance has to be tested against the input class.public final class IsInstance<T> extends Object implements BinaryPredicate<T,Class<?>>, Serializable
| Modifier and Type | Field and Description |
|---|---|
static IsInstance<Object> |
INSTANCE
Basic IsInstanceOf instance.
|
| Constructor and Description |
|---|
IsInstance() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that) |
int |
hashCode() |
static <T> IsInstance<T> |
instance()
Get an IsInstance instance.
|
static <T> UnaryPredicate<T> |
of(Class<?> clazz)
Get an IsInstanceOf UnaryPredicate.
|
boolean |
test(T left,
Class<?> right)
Evaluate this predicate.
|
String |
toString() |
public static final IsInstance<Object> INSTANCE
public IsInstance()
public boolean test(T left, Class<?> right)
test in interface BinaryPredicate<T,Class<?>>left - the L element of the ordered pair of argumentsright - the R element of the ordered pair of argumentspublic static <T> IsInstance<T> instance()
T - the object instance has to be tested against the input class.public static <T> UnaryPredicate<T> of(Class<?> clazz)
T - the object instance has to be tested against the input class.clazz - bound right-side argumentCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.