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
A generic class representing a tuple of three elements.
- Since:
- 4.0
- Author:
- Anindya Chatterjee.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Triplet
public Triplet() -
Triplet
-
-
Method Details
-
triplet
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
-
getSecond
-
getThird
-
setFirst
-
setSecond
-
setThird
-
equals
-
hashCode
public int hashCode() -
toString
-