Package com.google.common.collect
Interface MapDifference.ValueDifference<V>
-
- Enclosing interface:
- MapDifference<K,V>
public static interface MapDifference.ValueDifference<V>
A difference between the mappings from two maps with the same key. TheleftValue()
andrightValue()
are not equal, and one but not both of them may be null.- Since:
- 2.0 (imported from Google Collections Library)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
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()
.V
leftValue()
Returns the value from the left map (possibly null).V
rightValue()
Returns the value from the right map (possibly null).
-
-
-
Method Detail
-
leftValue
V leftValue()
Returns the value from the left map (possibly null).
-
rightValue
V rightValue()
Returns the value from the right map (possibly null).
-
equals
boolean equals(@Nullable java.lang.Object other)
Two instances are considered equal if theirleftValue()
values are equal and theirrightValue()
values are also equal.- Overrides:
equals
in classjava.lang.Object
-
hashCode
int hashCode()
The hash code equals the valueArrays.asList(leftValue(), rightValue()).hashCode()
.- Overrides:
hashCode
in classjava.lang.Object
-
-