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