com.std.util
Class Tuple<U,V>

java.lang.Object
extended by com.std.util.Tuple<U,V>
Type Parameters:
U - first object class
V - second object class
All Implemented Interfaces:
java.io.Serializable

public class Tuple<U,V>
extends java.lang.Object
implements java.io.Serializable

provides a convenient way to couple together any two objects with type safety

Author:
xxx
See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
Tuple(U u, V v)
          creates a new Tuple with the given and unchangeable elements
 
Method Summary
 boolean equals(java.lang.Object o)
           
 U getU()
           
 V getV()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Tuple

public Tuple(U u,
V v)
creates a new Tuple with the given and unchangeable elements

Parameters:
u - first parameter
v - second parameter
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getU

public U getU()
Returns:
the first parameter

getV

public V getV()
Returns:
the second parameter

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object