@DoNotMock("Use Maps.difference")
public static interface MapDifference.ValueDifference<V extends @Nullable Object>
A difference between the mappings from two maps with the same key. The
leftValue()
and
rightValue()
are not equal, and one but not both of them may be null.- Since:
- 2.0
- Author:
- Kevin Bourrillion
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Two instances are considered equal if theirleftValue()
values are equal and theirrightValue()
values are also equal.int
hashCode()
The hash code equals the valueArrays.asList(leftValue(), rightValue()).hashCode()
.Returns the value from the left map (possibly null).Returns the value from the right map (possibly null).
-
Method Details
-
leftValue
-
rightValue
V rightValue()Returns the value from the right map (possibly null). -
equals
Two instances are considered equal if theirleftValue()
values are equal and theirrightValue()
values are also equal. -
hashCode
-