Package at.jku.ssw.fp.util
Class Tuple3<A,B,C>
- java.lang.Object
-
- at.jku.ssw.fp.util.Tuple3<A,B,C>
-
- Type Parameters:
A
- the type of the first valueB
- the type of the second valueC
- the type of the third value
- All Implemented Interfaces:
Serializable
public class Tuple3<A,B,C> extends Object implements Serializable
Tuple of three generic values.- Author:
- Herbert Praehofer
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Compares this tuple object and the other object for equality.int
hashCode()
Computes a hash code from the hash codes of the three values.static <A,B,C>
Tuple3<A,B,C>of(A v1, B v2, C v3)
Creates a tuple of three value.String
toString()
Returns a string representation.
-
-
-
Method Detail
-
of
public static <A,B,C> Tuple3<A,B,C> of(A v1, B v2, C v3)
Creates a tuple of three value.- Type Parameters:
A
- the type of the first valueB
- the type of the second valueC
- the type of the third value- Parameters:
v1
- the first valuev2
- the second valuev3
- the third value- Returns:
- the tuple with three values
-
hashCode
public int hashCode()
Computes a hash code from the hash codes of the three values.
-
equals
public boolean equals(Object obj)
Compares this tuple object and the other object for equality. They are equal if the second object is a tuple of three and the three values are equal.
-
-