Package eu.bandm.tools.util.anon
Class Tuple3<A0,A1,A2>
java.lang.Object
eu.bandm.tools.util.anon.Tuple3<A0,A1,A2>
- Type Parameters:
A0
- the type of the first component.A1
- the type of the second component.A2
- the type of the third component.
- All Implemented Interfaces:
Tuploid1<A0>
,Tuploid2<A0,
,A1> Tuploid3<A0,
,A1, A2> Serializable
Implementation of a tuple with three components.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check whether all components of both tuples are equal.boolean
Check whether o is a 3-tuple and all components of both tuples are equal.get0()
Get the value of the first component.get1()
Get the value of the second component.get2()
Get the value of the third component.int
hashCode()
toString()
-
Constructor Details
-
Tuple3
Only constructor.- Parameters:
elem0
- the value for the first componentelem1
- the value for the second componentelem2
- the value for the third component
-
-
Method Details
-
get0
Get the value of the first component. -
get1
Get the value of the second component. -
get2
Get the value of the third component. -
equals
Check whether o is a 3-tuple and all components of both tuples are equal. -
equals
Check whether all components of both tuples are equal.- Parameters:
t
- the 3-tuple to compare with- Returns:
- whether both tuples have equal components.
-
hashCode
public int hashCode() -
toString
-