T
- the object instance has to be tested against the input class.public final class IsInstance<T> extends Object implements BinaryPredicate<T,Class<?>>
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> Predicate<T> |
of(Class<?> clazz)
Get an IsInstanceOf Predicate.
|
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.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.