public final class Tuple4<A,B,C,D>
extends java.lang.Object
Final immutable container for 4 objects of different types.
Values might be accessed directly: _1 and _2 and _3 and _4,
or thru getters: get_1() and get_2() and get_3() and get_4().
tuple4(Object, Object, Object, Object),
Tuple2,
Tuple3,
Tuple5| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
A |
get_1()
Value of the
_1 field |
B |
get_2()
Value of the
_2 field |
C |
get_3()
Value of the
_3 field |
D |
get_4()
Value of the
_4 field |
int |
hashCode() |
java.lang.String |
toString() |
static <A,B,C,D> Tuple4<A,B,C,D> |
tuple4(A _1,
B _2,
C _3,
D _4)
Factory method to create new instance of the immutable tuple.
|
public static <A,B,C,D> Tuple4<A,B,C,D> tuple4(A _1, B _2, C _3, D _4)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object