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