public final class EqualsCheckerIsSame extends AbstractEqualsChecker<Object>
EqualsChecker that simply checks if two objects are same (identical instances,
checked via == operator).| Modifier and Type | Field and Description |
|---|---|
private static EqualsCheckerIsSame |
INSTANCE |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
EqualsCheckerIsSame()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <VALUE> EqualsChecker<VALUE> |
getInstance() |
protected boolean |
isEqualNotNull(Object value1,
Object value2)
Called from
AbstractEqualsChecker.isEqual(Object, Object) if objects are both NOT same and NOT null. |
isEqualprivate static final long serialVersionUID
private static final EqualsCheckerIsSame INSTANCE
public EqualsCheckerIsSame()
getInstance() instead.public static <VALUE> EqualsChecker<VALUE> getInstance()
VALUE - is the generic type of the values to check.protected boolean isEqualNotNull(Object value1, Object value2)
AbstractEqualsCheckerAbstractEqualsChecker.isEqual(Object, Object) if objects are both NOT same and NOT null.isEqualNotNull in class AbstractEqualsChecker<Object>value1 - is the first value to check.value2 - is the first value to check.true if the given values are considered as equal, false otherwise.Copyright © 2001–2016 mmm-Team. All rights reserved.