L
- the left argument type.R
- the right argument type.public final class IsNotEqual<L,R> extends Object implements BinaryPredicate<L,R>
Tests
true
iff its arguments are
not equal
or both
null
.
This relation is symmetric but irreflexive and not transitive.
Modifier and Type | Field and Description |
---|---|
static IsNotEqual<Object,Object> |
INSTANCE
Basic IsNotEqual
|
Constructor and Description |
---|
IsNotEqual()
Create a new IsNotEqual.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
int |
hashCode() |
static <L,R> IsNotEqual<L,R> |
instance()
Get an IsNotEqual instance.
|
boolean |
test(L left,
R right)
Evaluate this predicate.
|
static <L,R> Predicate<L> |
to(R object)
Get an IsNotEqual Predicate.
|
String |
toString() |
public static final IsNotEqual<Object,Object> INSTANCE
public IsNotEqual()
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> IsNotEqual<L,R> instance()
L
- the left argument type.R
- the right argument type.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.