net.sf.jasperreports.engine.util
Class Pair<T,U>

java.lang.Object
  extended by 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 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.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 T first()
           
 int hashCode()
           
 U second()
           
 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 pair
o2 - the second member of the pair
Method Detail

first

public T first()

second

public U second()

equals

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

hashCode

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


© 2001-2010 Jaspersoft Corporation www.jaspersoft.com