Interface MapDifference<K,​V>

  • Type Parameters:
    K - identifying the type of the key
    V - identifying the type of the value

    public interface MapDifference<K,​V>
    An object representing the differences between two maps.
    Author:
    com.google.common.collect.MapDifference
    • Method Detail

      • areEqual

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

        Map<K,​V> entriesOnlyOnLeft()
        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()
        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()
        Returns:
        an unmodifiable map containing the entries that appear in both maps; that is, the intersection of the two maps.
      • hashCode

        int hashCode()
        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