Interface MapDifference.ValueDifference<V>

All Known Implementing Classes:
Maps.ValueDifferenceImpl
Enclosing interface:
MapDifference<K,V>

public static interface MapDifference.ValueDifference<V>
A difference between the mappings from two maps with the same key. The leftValue() and rightValue() are not equal, and one but not both of them may be null.
Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
    Two instances are considered equal if their leftValue() values are equal and their rightValue() values are also equal.
    int
    The hash code equals the value Arrays.asList(leftValue(), rightValue()).hashCode().
    Returns the value from the left map (possibly null).
    Returns the value from the right map (possibly null).
  • Method Details

    • leftValue

      V leftValue()
      Returns the value from the left map (possibly null).
    • rightValue

      V rightValue()
      Returns the value from the right map (possibly null).
    • equals

      boolean equals(@CheckForNull Object other)
      Two instances are considered equal if their leftValue() values are equal and their rightValue() values are also equal.
      Overrides:
      equals in class Object
    • hashCode

      int hashCode()
      The hash code equals the value Arrays.asList(leftValue(), rightValue()).hashCode().
      Overrides:
      hashCode in class Object