@DoNotMock(value="Use Maps.difference") public static interface MapDifference.ValueDifference<V>
leftValue()
and
rightValue()
are not equal, and one but not both of them may be null.Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable Object other)
Two instances are considered equal if their
leftValue() values are equal and their
rightValue() values are also equal. |
int |
hashCode()
The hash code equals the value
Arrays.asList(leftValue(), rightValue()).hashCode() . |
V |
leftValue()
Returns the value from the left map (possibly null).
|
V |
rightValue()
Returns the value from the right map (possibly null).
|
V rightValue()
boolean equals(@Nullable Object other)
leftValue()
values are equal and their
rightValue()
values are also equal.equals
in class Object
other
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.Object.hashCode()
,
HashMap
int hashCode()
Arrays.asList(leftValue(), rightValue()).hashCode()
.hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
Copyright © 2010–2020. All rights reserved.