L
- the left argument type.R
- the right argument type.public final class IsNotSame<L,R> extends Object implements BinaryPredicate<L,R>
Tests
the reference (!=) inequality of its arguments.Modifier and Type | Field and Description |
---|---|
static IsNotSame<Object,Object> |
INSTANCE
Basic IsNotSame
|
Constructor and Description |
---|
IsNotSame()
Create a new IsNotSame.
|
Modifier and Type | Method and Description |
---|---|
static <L,R> Predicate<L> |
as(R object)
Get an IsNotSame Predicate.
|
boolean |
equals(Object that) |
int |
hashCode() |
static <L,R> IsNotSame<L,R> |
instance()
Get an IsNotSame instance.
|
boolean |
test(L left,
R right)
Evaluate this predicate.
|
String |
toString() |
public IsNotSame()
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> IsNotSame<L,R> instance()
L
- the left argument type.R
- the right argument type.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.