net.sf.jasperreports.engine.util
Class Pair

java.lang.Object
  extended by net.sf.jasperreports.engine.util.Pair
All Implemented Interfaces:
java.io.Serializable

public class Pair
extends java.lang.Object
implements java.io.Serializable

Utility class used to pair two objects.

Version:
$Id: Pair.java 3034 2009-08-27 11:58:04Z teodord $
Author:
Lucian Chirita ([email protected])
See Also:
Serialized Form

Constructor Summary
Pair(java.lang.Object o1, java.lang.Object o2)
          Create a pair instance.
 
Method Summary
 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(java.lang.Object o1,
            java.lang.Object o2)
Create a pair instance.

Parameters:
o1 - the first member of the pair
o2 - the second member of the pair
Method Detail

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


Copyright © 2011. All Rights Reserved.