Package org.dizitart.no2.common.tuples
Class Triplet<A,B,C>
- java.lang.Object
-
- org.dizitart.no2.common.tuples.Triplet<A,B,C>
-
- Type Parameters:
A- the type of the first elementB- the type of the second elementC- the type of the third element
- All Implemented Interfaces:
Serializable
public class Triplet<A,B,C> extends Object implements Serializable
A generic class representing a tuple of three 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()BgetSecond()CgetThird()inthashCode()voidsetFirst(A first)voidsetSecond(B second)voidsetThird(C third)StringtoString()static <A,B,C>
Triplet<A,B,C>triplet(A a, B b, C c)Creates a new triplet.
-
-
-
Method Detail
-
triplet
public static <A,B,C> Triplet<A,B,C> triplet(A a, B b, C c)
Creates a new triplet.- Type Parameters:
A- the type parameterB- the type parameterC- the type parameter- Parameters:
a- the ab- the bc- the c- Returns:
- the triplet
-
getFirst
public A getFirst()
-
getSecond
public B getSecond()
-
getThird
public C getThird()
-
setFirst
public void setFirst(A first)
-
setSecond
public void setSecond(B second)
-
setThird
public void setThird(C third)
-
-