Package org.dizitart.no2.common.tuples
Class Quartet<A,B,C,D>
- java.lang.Object
-
- org.dizitart.no2.common.tuples.Quartet<A,B,C,D>
-
- Type Parameters:
A- the type of the first elementB- the type of the second elementC- the type of the third elementD- the type of the fourth element
- All Implemented Interfaces:
Serializable
public class Quartet<A,B,C,D> extends Object implements Serializable
A tuple of four elements.- Since:
- 4.0
- Author:
- Anindya Chatterjee
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)AgetFirst()DgetFourth()BgetSecond()CgetThird()inthashCode()static <A,B,C,D>
Quartet<A,B,C,D>quartet(A a, B b, C c, D d)Creates a new quartet.voidsetFirst(A first)voidsetFourth(D fourth)voidsetSecond(B second)voidsetThird(C third)StringtoString()
-
-
-
Method Detail
-
quartet
public static <A,B,C,D> Quartet<A,B,C,D> quartet(A a, B b, C c, D d)
Creates a new quartet.- Type Parameters:
A- the type parameterB- the type parameterC- the type parameterD- the type parameter- Parameters:
a- the ab- the bc- the cd- the d- Returns:
- the quartet
-
getFirst
public A getFirst()
-
getSecond
public B getSecond()
-
getThird
public C getThird()
-
getFourth
public D getFourth()
-
setFirst
public void setFirst(A first)
-
setSecond
public void setSecond(B second)
-
setThird
public void setThird(C third)
-
setFourth
public void setFourth(D fourth)
-
-