org.jasig.portal.utils
Class Tuple<A,B>

java.lang.Object
  extended by org.jasig.portal.utils.Tuple<A,B>
All Implemented Interfaces:
Serializable

public class Tuple<A,B>
extends Object
implements Serializable

Simple object that contains two values who's references are immutable once initialized.

Version:
$Revision$
Author:
Eric Dalquist
See Also:
Serialized Form

Field Summary
 A first
           
 B second
           
 
Constructor Summary
Tuple(A first, B second)
           
 
Method Summary
 boolean equals(Object object)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

first

public final A first

second

public final B second
Constructor Detail

Tuple

public Tuple(A first,
             B second)
Method Detail

equals

public boolean equals(Object object)
Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2010 Jasig. All Rights Reserved.