Package com.google.common.collect
Class Maps.ValueDifferenceImpl<V>
java.lang.Object
com.google.common.collect.Maps.ValueDifferenceImpl<V>
- All Implemented Interfaces:
MapDifference.ValueDifference<V>
- Enclosing class:
- Maps
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static <V> MapDifference.ValueDifference<V>create(V left, V right) booleanTwo instances are considered equal if theirMapDifference.ValueDifference.leftValue()values are equal and theirMapDifference.ValueDifference.rightValue()values are also equal.inthashCode()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).toString()
-
Field Details
-
left
-
right
-
-
Constructor Details
-
ValueDifferenceImpl
-
-
Method Details
-
create
-
leftValue
Description copied from interface:MapDifference.ValueDifferenceReturns the value from the left map (possibly null).- Specified by:
leftValuein interfaceMapDifference.ValueDifference<V>
-
rightValue
Description copied from interface:MapDifference.ValueDifferenceReturns the value from the right map (possibly null).- Specified by:
rightValuein interfaceMapDifference.ValueDifference<V>
-
equals
Description copied from interface:MapDifference.ValueDifferenceTwo instances are considered equal if theirMapDifference.ValueDifference.leftValue()values are equal and theirMapDifference.ValueDifference.rightValue()values are also equal.- Specified by:
equalsin interfaceMapDifference.ValueDifference<V>- Overrides:
equalsin classObject
-
hashCode
public int hashCode()Description copied from interface:MapDifference.ValueDifferenceThe hash code equals the valueArrays.asList(leftValue(), rightValue()).hashCode().- Specified by:
hashCodein interfaceMapDifference.ValueDifference<V>- Overrides:
hashCodein classObject
-
toString
-