net.sf.jasperreports.engine.util
Class Pair<T,U>
java.lang.Object
net.sf.jasperreports.engine.util.Pair<T,U>
- All Implemented Interfaces:
- Serializable
public class Pair<T,U>
- extends Object
- implements Serializable
Utility class used to pair two objects.
- Version:
- $Id: Pair.java 5221 2012-04-04 14:08:30Z lucianc $
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
|
Constructor Summary |
Pair(T o1,
U o2)
Create a pair instance. |
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
first
public T first()
second
public U second()
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.