org.jasig.portal.utils
Class Tuple<A,B>
java.lang.Object
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
|
Constructor Summary |
Tuple(A first,
B second)
|
first
public final A first
second
public final B second
Tuple
public Tuple(A first,
B second)
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.