Class ValueDifference<V>
- java.lang.Object
-
- com.github.toolarium.common.compare.map.impl.ValueDifference<V>
-
- All Implemented Interfaces:
IValueDifference<V>
public class ValueDifference<V> extends java.lang.Object implements IValueDifference<V>
Implements theIValueDifference.
-
-
Constructor Summary
Constructors Constructor Description ValueDifference(V left, V right)Constructor for ValueDifferenceImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()VleftValue()Returns the value from the left map (possibly null).VrightValue()Returns the value from the right map (possibly null).java.lang.StringtoString()
-
-
-
Method Detail
-
leftValue
public V leftValue()
Description copied from interface:IValueDifferenceReturns the value from the left map (possibly null).- Specified by:
leftValuein interfaceIValueDifference<V>- Returns:
- the value from the left map
-
rightValue
public V rightValue()
Description copied from interface:IValueDifferenceReturns the value from the right map (possibly null).- Specified by:
rightValuein interfaceIValueDifference<V>- Returns:
- the value from the right map
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-