|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.stardust.common.Pair<K,V>
public class Pair<K,V>
Holds pairs of values.
| Constructor Summary | |
|---|---|
Pair(K first,
V second)
Initializes the value pair. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Compares for equality with another value pair. |
K |
getFirst()
Retrieves the first value of the pair. |
V |
getSecond()
Retrieves the second value of the pair. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(K first,
V second)
first - The first value.second - The second value.| Method Detail |
|---|
public K getFirst()
public V getSecond()
public boolean equals(Object other)
equals in class Objecttrue if this pair is equal the given other pair,
false if the pairs are not equal or the other value is not an
instance of Pair.public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||