Module de.cuioss.java.tools
Package de.cuioss.tools.collect
Interface MapDifference.ValueDifference<V>
- Type Parameters:
V- identifying the type of the value
- Enclosing interface:
- MapDifference<K,
V>
public static interface MapDifference.ValueDifference<V>
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.-
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo instances are considered equal if theirleftValue()values are equal and theirrightValue()values are also equal.inthashCode()The hash code equals the valueArrays.asList(leftValue(), rightValue()).hashCode().
-
Method Details
-
leftValue
- Returns:
- the value from the left map (possibly null).
-
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
int hashCode()The hash code equals the valueArrays.asList(leftValue(), rightValue()).hashCode().
-