drasys.or
Class Pair
java.lang.Object
|
+--drasys.or.Pair
- public class Pair
- extends java.lang.Object
- implements PairI, java.io.Serializable
A PairI implementation.
- See Also:
- Serialized Form
Constructor Summary |
Pair(java.lang.Object first,
java.lang.Object second)
|
Pair(PairI p)
|
Method Summary |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
getFirst()
Get the first element of the pair. |
java.lang.Object |
getSecond()
Get the second element of the pair. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Pair
public Pair(java.lang.Object first,
java.lang.Object second)
Pair
public Pair(PairI p)
getFirst
public java.lang.Object getFirst()
- Get the first element of the pair.
- Specified by:
- getFirst in interface PairI
getSecond
public java.lang.Object getSecond()
- Get the second element of the pair.
- Specified by:
- getSecond in interface PairI
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException,
java.lang.OutOfMemoryError
- Overrides:
- clone in class java.lang.Object
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(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com