|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.fingo.util.Pair
public class Pair
The simple string key - string value pair object.
| Constructor Summary | |
|---|---|
Pair()
Creates new instance with empty key and value. |
|
Pair(java.lang.String key,
java.lang.String value)
Creates new instance with the given key and value. |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares the values of the given pairs. |
java.lang.String |
getKey()
Returns the key. |
java.lang.String |
getValue()
Returns the value. |
void |
setKey(java.lang.String key)
Sets the key. |
void |
setValue(java.lang.String value)
Sets the value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public Pair(java.lang.String key,
java.lang.String value)
key - the keyvalue - the valuepublic Pair()
| Method Detail |
|---|
public java.lang.String getKey()
public java.lang.String getValue()
public void setKey(java.lang.String key)
key - The key to setpublic void setValue(java.lang.String value)
value - The value to set
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatoro1 - the fist comparison argumento2 - the second comparison argument
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||