net.sf.jasperreports.engine.util
Class Pair
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Pair
public Pair(java.lang.Object o1,
java.lang.Object o2)
- Create a pair instance.
- Parameters:
o1
- the first member of the pairo2
- the second member of the pair
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.