Package com.google.common.collect
Interface MapDifference.ValueDifference<V extends @Nullable java.lang.Object>
- 
- Enclosing interface:
- MapDifference<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
 
 @DoNotMock("Use Maps.difference") public static interface MapDifference.ValueDifference<V extends @Nullable java.lang.Object> 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
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(java.lang.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()Returns the value from the left map (possibly null).VrightValue()Returns the value from the right map (possibly null).
 
- 
- 
- 
Method Detail- 
rightValueV rightValue() Returns the value from the right map (possibly null).
 - 
equalsboolean equals(@CheckForNull java.lang.Object other) Two instances are considered equal if theirleftValue()values are equal and theirrightValue()values are also equal.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodeint hashCode() The hash code equals the valueArrays.asList(leftValue(), rightValue()).hashCode().- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-