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) boolean
Two instances are considered equal if theirMapDifference.ValueDifference.leftValue()
values are equal and theirMapDifference.ValueDifference.rightValue()
values are also equal.int
hashCode()
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.ValueDifference
Returns the value from the left map (possibly null).- Specified by:
leftValue
in interfaceMapDifference.ValueDifference<V>
-
rightValue
Description copied from interface:MapDifference.ValueDifference
Returns the value from the right map (possibly null).- Specified by:
rightValue
in interfaceMapDifference.ValueDifference<V>
-
equals
Description copied from interface:MapDifference.ValueDifference
Two instances are considered equal if theirMapDifference.ValueDifference.leftValue()
values are equal and theirMapDifference.ValueDifference.rightValue()
values are also equal.- Specified by:
equals
in interfaceMapDifference.ValueDifference<V>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()Description copied from interface:MapDifference.ValueDifference
The hash code equals the valueArrays.asList(leftValue(), rightValue()).hashCode()
.- Specified by:
hashCode
in interfaceMapDifference.ValueDifference<V>
- Overrides:
hashCode
in classObject
-
toString
-