Package io.cui.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. TheleftValue()andrightValue()are not equal, and one but not both of them may be null.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object other)Two 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().VleftValue()VrightValue()
-
-
-
Method Detail
-
rightValue
V rightValue()
- Returns:
- the value from the right map (possibly null).
-
equals
boolean equals(Object other)
Two instances are considered equal if theirleftValue()values are equal and theirrightValue()values are also equal.
-
-