Package eu.bandm.tools.util.anon
Class Tuple4<A0,A1,A2,A3>
java.lang.Object
eu.bandm.tools.util.anon.Tuple4<A0,A1,A2,A3>
- Type Parameters:
A0
- the type of the first component.A1
- the type of the second component.A2
- the type of the third component.A3
- the type of the fourth component.
- All Implemented Interfaces:
Tuploid1<A0>
,Tuploid2<A0,
,A1> Tuploid3<A0,
,A1, A2> Tuploid4<A0,
,A1, A2, A3> Serializable
Implementation of a tuple with four 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 4-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.get3()
Get the value of the fourth component.int
hashCode()
toString()
-
Constructor Details
-
Tuple4
Only constructor.- Parameters:
elem0
- the value for the first componentelem1
- the value for the second componentelem2
- the value for the third componentelem3
- the value for the fourth 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. -
get3
Get the value of the fourth component. -
equals
Check whether o is a 4-tuple and all components of both tuples are equal. -
equals
Check whether all components of both tuples are equal.- Parameters:
t
- the 4-tuple to compare with- Returns:
- whether both tuples have equal components.
-
hashCode
public int hashCode() -
toString
-