| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.shell.support.util.Pair<K,V>
K - the key typeV - the value typepublic class Pair<K,V>
A pair with a key of type "K" and a value of type "V". Instances are immutable.
| Constructor Summary | |
|---|---|
| Pair(K key,
     V value)Constructor | |
| Method Summary | |
|---|---|
|  boolean | equals(Object obj) | 
|  K | getKey()Returns the key | 
|  V | getValue()Returns the value | 
|  int | hashCode() | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public Pair(K key,
            V value)
key - can be nullvalue - can be null| Method Detail | 
|---|
public K getKey()
null if it ispublic V getValue()
null if it ispublic boolean equals(Object obj)
equals in class Objectpublic 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 | ||||||||