Package com.google.common.collect
Interface MapDifference<K,V>
- All Known Subinterfaces:
SortedMapDifference<K,V>
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
An object representing the differences between two maps.
- Since:
- 2.0 (imported from Google Collections Library)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDeprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023 -
Method Summary
Modifier and TypeMethodDescriptionbooleanareEqual()Deprecated.Returnstrueif there are no differences between the two maps; that is, if the maps are equal.Deprecated.Returns an unmodifiable map describing keys that appear in both maps, but with different values.Deprecated.Returns an unmodifiable map containing the entries that appear in both maps; that is, the intersection of the two maps.Deprecated.Returns an unmodifiable map containing the entries from the left map whose keys are not present in the right map.Deprecated.Returns an unmodifiable map containing the entries from the right map whose keys are not present in the left map.booleanDeprecated.Compares the specified object with this instance for equality.inthashCode()Deprecated.Returns the hash code for this instance.
-
Method Details
-
areEqual
boolean areEqual()Deprecated.Returnstrueif there are no differences between the two maps; that is, if the maps are equal. -
entriesOnlyOnLeft
Deprecated.Returns an unmodifiable map containing the entries from the left map whose keys are not present in the right map. -
entriesOnlyOnRight
Deprecated.Returns an unmodifiable map containing the entries from the right map whose keys are not present in the left map. -
entriesInCommon
Deprecated.Returns an unmodifiable map containing the entries that appear in both maps; that is, the intersection of the two maps. -
entriesDiffering
Map<K,MapDifference.ValueDifference<V>> entriesDiffering()Deprecated.Returns an unmodifiable map describing keys that appear in both maps, but with different values. -
equals
Deprecated.Compares the specified object with this instance for equality. Returnstrueif the given object is also aMapDifferenceand the values returned by theentriesOnlyOnLeft(),entriesOnlyOnRight(),entriesInCommon()andentriesDiffering()of the two instances are equal. -
hashCode
int hashCode()Deprecated.Returns the hash code for this instance. This is defined as the hash code ofArrays.asList(entriesOnlyOnLeft(), entriesOnlyOnRight(), entriesInCommon(), entriesDiffering())
-