- Type Parameters:
O1 - The Type of the first Object that is stored in this Tuple.
O2 - The Type of the second Object that is stored in this Tuple.
public class Tuple<O1,O2>
extends Object
This class is used as a data-structure to support tuples of
objects.
-
Constructor Summary
Constructors
The main constructor of this data-structure.
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Tuple
public Tuple(O1 value1,
O2 value2)
The main constructor of this data-structure.
- Parameters:
value1 - The Object that should be stored as the first part of this Tuple.
value2 - The Object that should be stored as the second part of this Tuple.
-
Method Details
-
setObject1
public void setObject1(O1 value)
- Parameters:
value - The new Object.
-
-
setObject2
public void setObject2(O2 value)
- Parameters:
value - The new Object.
-