de.cau.cs.kieler.synccharts.s
Class Tuple<T,V>

java.lang.Object
  extended by de.cau.cs.kieler.synccharts.s.Tuple<T,V>
Type Parameters:
T - type of the first tuple object
V - type of the second tuple object

public class Tuple<T,V>
extends Object

A simple implementation of a tuple type.

Rating yellow
(2010-06-14)

Constructor Summary
Tuple()
          Constructor of the type "Tupel" without arguments.
Tuple(T o1, V o2)
          Constructor for the type "Tupel" with two objects as argument.
 
Method Summary
 boolean equals(Object other)
          
 T getO1()
          Getter for the first object of the tuple.
 V getO2()
          Getter for the second object of the tuple.
 void setO1(T object)
          Setter for the first object of the tuple.
 void setO2(V object)
          Setter for the second object of the tuple.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tuple

public Tuple(T o1,
             V o2)
Constructor for the type "Tupel" with two objects as argument.

Parameters:
o1 - first object of the tuple
o2 - second object of the tuple

Tuple

public Tuple()
Constructor of the type "Tupel" without arguments. This sets both objects of the tuple to null.

Method Detail

getO1

public T getO1()
Getter for the first object of the tuple.

Returns:
first object of the tuple

getO2

public V getO2()
Getter for the second object of the tuple.

Returns:
second object of the tuple

setO1

public void setO1(T object)
Setter for the first object of the tuple.

Parameters:
object - to set the first object of the tuple

setO2

public void setO2(V object)
Setter for the second object of the tuple.

Parameters:
object - to set the second object of the tuple

equals

public boolean equals(Object other)

Overrides:
equals in class Object