|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.util.Pair
public class Pair
Pair class combines two objects in one.
For equality and similar methods, both objects contained is considered.
KeyValuePair
,
Serialized FormField Summary | |
---|---|
java.lang.Object |
A
|
java.lang.Object |
B
|
Constructor Summary | |
---|---|
Pair()
|
|
Pair(java.lang.Object a,
java.lang.Object b)
Create a new pair 〈a, b〉. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares two Pairs in favor of A (and then B). |
boolean |
equals(java.lang.Object o)
Checks two Pair objects for equal A and equal B. |
java.lang.Object |
getA()
|
java.lang.Object |
getB()
|
int |
hashCode()
|
void |
setA(java.lang.Object newA)
|
void |
setB(java.lang.Object newB)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.Object A
public java.lang.Object B
Constructor Detail |
---|
public Pair(java.lang.Object a, java.lang.Object b)
public Pair()
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getA()
public void setA(java.lang.Object newA)
public java.lang.Object getB()
public void setB(java.lang.Object newB)
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |