Interface MapDifference<K,​V>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  MapDifference.ValueDifference<V>
      A difference between the mappings from two maps with the same key.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean areEqual()
      Returns true if there are no differences between the two maps; that is, if the maps are equal.
      Map<K,​MapDifference.ValueDifference<V>> entriesDiffering()
      Returns an unmodifiable map describing keys that appear in both maps, but with different values.
      Map<K,​V> entriesInCommon()
      Returns an unmodifiable map containing the entries that appear in both maps; that is, the intersection of the two maps.
      Map<K,​V> entriesOnlyOnLeft()
      Returns an unmodifiable map containing the entries from the left map whose keys are not present in the right map.
      Map<K,​V> entriesOnlyOnRight()
      Returns an unmodifiable map containing the entries from the right map whose keys are not present in the left map.
      boolean equals​(@Nullable Object object)
      Compares the specified object with this instance for equality.
      int hashCode()
      Returns the hash code for this instance.