Interface MapDifference<K,V>

All Known Subinterfaces:
SortedMapDifference<K,V>

@GwtCompatible @Deprecated(since="2022-12-01") public interface MapDifference<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 Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Deprecated.
    The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    Returns true if 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.
    boolean
    equals(Object object)
    Deprecated.
    Compares the specified object with this instance for equality.
    int
    Deprecated.
    Returns the hash code for this instance.
  • Method Details

    • areEqual

      boolean areEqual()
      Deprecated.
      Returns true if there are no differences between the two maps; that is, if the maps are equal.
    • entriesOnlyOnLeft

      Map<K,V> entriesOnlyOnLeft()
      Deprecated.
      Returns an unmodifiable map containing the entries from the left map whose keys are not present in the right map.
    • entriesOnlyOnRight

      Map<K,V> entriesOnlyOnRight()
      Deprecated.
      Returns an unmodifiable map containing the entries from the right map whose keys are not present in the left map.
    • entriesInCommon

      Map<K,V> 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

      boolean equals(@Nullable Object object)
      Deprecated.
      Compares the specified object with this instance for equality. Returns true if the given object is also a MapDifference and the values returned by the entriesOnlyOnLeft(), entriesOnlyOnRight(), entriesInCommon() and entriesDiffering() of the two instances are equal.
      Overrides:
      equals in class Object
    • hashCode

      int hashCode()
      Deprecated.
      Returns the hash code for this instance. This is defined as the hash code of
         
      
         Arrays.asList(entriesOnlyOnLeft(), entriesOnlyOnRight(),
             entriesInCommon(), entriesDiffering())
      Overrides:
      hashCode in class Object