|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.electric.database.geometry.btree.unboxed.Pair<A,B>
public class Pair<A,B>
Note that Map.Entry is just the Java idiom for Pair
(there is no standard generic Pair).
JDK1.6 has AbstractMap.SimpleImmutableEntry for this.
Constructor Summary | |
---|---|
Pair(A a,
B b)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
A |
getKey()
|
B |
getValue()
|
int |
hashCode()
|
B |
setValue(B b)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Pair(A a, B b)
Method Detail |
---|
public B setValue(B b)
setValue
in interface java.util.Map.Entry<A,B>
public A getKey()
getKey
in interface java.util.Map.Entry<A,B>
public B getValue()
getValue
in interface java.util.Map.Entry<A,B>
public int hashCode()
hashCode
in interface java.util.Map.Entry<A,B>
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map.Entry<A,B>
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |