Package at.jku.ssw.fp.util
Class Tuple5<A,B,C,D,E>
- java.lang.Object
-
- at.jku.ssw.fp.util.Tuple5<A,B,C,D,E>
-
- Type Parameters:
A
- the type of the first valueB
- the type of the second valueC
- the type of the third valueD
- the type of the fourth valueE
- the type of the fifth value
- All Implemented Interfaces:
Serializable
public class Tuple5<A,B,C,D,E> extends Object implements Serializable
Tuple of five 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 five values.static <A,B,C,D,E>
Tuple5<A,B,C,D,E>of(A v1, B v2, C v3, D v4, E v5)
Creates a tuple of five value.String
toString()
Returns a string representation.
-
-
-
Method Detail
-
of
public static <A,B,C,D,E> Tuple5<A,B,C,D,E> of(A v1, B v2, C v3, D v4, E v5)
Creates a tuple of five value.- Type Parameters:
A
- the type of the first valueB
- the type of the second valueC
- the type of the third valueD
- the type of the fourth valueE
- the type of the fifth value- Parameters:
v1
- the first valuev2
- the second valuev3
- the third valuev4
- the fourth valuev5
- the fifth value- Returns:
- the tuple with four values
-
hashCode
public int hashCode()
Computes a hash code from the hash codes of the five 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 five and the five values are equal.
-
-