- java.lang.Object
-
- net.sf.jasperreports.engine.util.Pair<T,U>
-
- All Implemented Interfaces:
- java.io.Serializable
public class Pair<T,U>
extends java.lang.Object
implements java.io.Serializable
Utility class used to pair two objects.
- Version:
- $Id: Pair.java 4732 2011-10-21 09:14:15Z lucianc $
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors
Constructor and Description |
Pair(T o1,
U o2)
Create a pair instance.
|
-
Method Summary
Methods
Modifier and Type |
Method and Description |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
Constructor Detail
-
Pair
public Pair(T o1,
U o2)
Create a pair instance.
- Parameters:
o1
- the first member of the pairo2
- the second member of the pair
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com