Package eu.bandm.tools.util.anon
Class Tuple2<A0,A1>
java.lang.Object
eu.bandm.tools.util.anon.Tuple2<A0,A1>
- Type Parameters:
A0
- the type of the first component.A1
- the type of the second component.
- All Implemented Interfaces:
Tuploid1<A0>
,Tuploid2<A0,
,A1> Serializable
Implementation of a tuple with two components.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Convenience class for building a list of 2-tuples. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Tuple2
Only constructor.- Parameters:
elem0
- the value for the first componentelem1
- the value for the second component
-
-
Method Details
-
get0
Get the value of the first component. -
get1
Get the value of the second component. -
equals
Check whether o is a 2-tuple and all components of both tuples are equal. -
equals
Check whether all components of both tuples are equal.- Parameters:
t
- the 2-tuple to compare with- Returns:
- whether both tuples have equal components.
-
hashCode
public int hashCode() -
toString
-