Class MapDifference<K,V>
java.lang.Object
com.github.toolarium.common.compare.map.impl.MapDifference<K,V>
- All Implemented Interfaces:
IMapDifference<K,V>
- Direct Known Subclasses:
SortedMapDifference
Implements the
IMapDifference.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanareEqual()Returnstrueif there are no differences between the two maps; that is, if the maps are equal.Returns a map describing keys that appear in both maps, but with different values.Returns a map containing the entries that appear in both maps; that is, the intersection of the two maps.Returns a map containing the entries from the left map whose keys are not present in the right map.Returns a map containing the entries from the right map whose keys are not present in the left map.booleaninthashCode()toString()
-
Constructor Details
-
Method Details
-
areEqual
public boolean areEqual()Description copied from interface:IMapDifferenceReturnstrueif there are no differences between the two maps; that is, if the maps are equal.- Specified by:
areEqualin interfaceIMapDifference<K,V> - Returns:
- true if they are equal
- See Also:
-
entriesOnlyOnLeft
Description copied from interface:IMapDifferenceReturns a map containing the entries from the left map whose keys are not present in the right map.- Specified by:
entriesOnlyOnLeftin interfaceIMapDifference<K,V> - Returns:
- map containing the entries from the left map whose keys are not present in the right map
- See Also:
-
entriesOnlyOnRight
Description copied from interface:IMapDifferenceReturns a map containing the entries from the right map whose keys are not present in the left map.- Specified by:
entriesOnlyOnRightin interfaceIMapDifference<K,V> - Returns:
- map containing the entries from the right map whose keys are not present in the left map
- See Also:
-
entriesInCommon
Description copied from interface:IMapDifferenceReturns a map containing the entries that appear in both maps; that is, the intersection of the two maps.- Specified by:
entriesInCommonin interfaceIMapDifference<K,V> - Returns:
- map containing the entries that appear in both maps; that is, the intersection of the two maps
- See Also:
-
entriesDiffering
Description copied from interface:IMapDifferenceReturns a map describing keys that appear in both maps, but with different values.- Specified by:
entriesDifferingin interfaceIMapDifference<K,V> - Returns:
- map describing keys that appear in both maps, but with different values.
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-