Class Tuple<T>
java.lang.Object
nl.jqno.equalsverifier.internal.prefabvalues.Tuple<T>
Container for three values of the same type: a "red" one, a "blue" one, and a shallow copy of the
"red" one.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Tuple
Constructor.- Parameters:
red
- The red value.blue
- The blue value.redCopy
- A shallow copy of the red value.
-
-
Method Details
-
of
Factory method that turns three untyped values into a typed tuple.- Type Parameters:
U
- The assumed type of the values.- Parameters:
red
- The red value.blue
- The blue value.redCopy
- A shallow copy of the red value.- Returns:
- A typed tuple with the three given values.
-
getRed
- Returns:
- The red value.
-
getBlue
- Returns:
- The blue value.
-
getRedCopy
- Returns:
- The shallow copy of the red value.
-
equals
-
hashCode
public int hashCode() -
toString
-