L
- the left argument type.R
- the right argument type.public final class IsEqual<L,R> extends Object implements BinaryPredicate<L,R>
Tests
true
iff its arguments are
equal
or both
null
.
This relation is
an equivalence relation on
the set of objects that adhere to the
Object.equals
contract.
Modifier and Type | Field and Description |
---|---|
static IsEqual<Object,Object> |
INSTANCE
Basic IsEqual
|
Constructor and Description |
---|
IsEqual()
Create a new IsEqual.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
int |
hashCode() |
static <L,R> IsEqual<L,R> |
instance()
Get an IsEqual instance.
|
boolean |
test(L left,
R right)
Evaluate this predicate.
|
static <L,R> Predicate<L> |
to(R object)
Get an IsEqual Predicate.
|
String |
toString() |
public IsEqual()
public boolean test(L left, R right)
test
in interface BinaryPredicate<L,R>
left
- the L element of the ordered pair of argumentsright
- the R element of the ordered pair of argumentspublic static <L,R> IsEqual<L,R> instance()
L
- the left argument type.R
- the right argument type.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.