net.sf.composite.util
Class ObjectPair
java.lang.Object
net.sf.composite.util.ObjectPair
public class ObjectPair
- extends java.lang.Object
A pair of objects. This object is used for creating a key value in a Maps
used for caching purposes. Note that the order of the two objects in the pair
is important. Also note that object1 and object2 may not be null.
- Since:
- Mar 14, 2005
- Author:
- Matt Sgarlata
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ObjectPair
public ObjectPair()
ObjectPair
public ObjectPair(java.lang.Object object1,
java.lang.Object object2)
getObject1
public java.lang.Object getObject1()
setObject1
public void setObject1(java.lang.Object object1)
getObject2
public java.lang.Object getObject2()
setObject2
public void setObject2(java.lang.Object object2)
equals
public boolean equals(java.lang.Object object)
- 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 © 2005-2008.