|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.util.KeyValue
public class KeyValue
A settable key value class.
| Constructor Summary | |
|---|---|
KeyValue()
Constructs an empty key value. |
|
KeyValue(String kv)
Constructs a string key value. |
|
KeyValue(String k,
Object v)
Constructs a specific key value. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
String |
getKey()
Gets the key. |
String |
getString()
Gets the string value. |
Object |
getValue()
Gets the value. |
int |
hashCode()
|
void |
setKey(String k)
Sets the key. |
void |
setString(String s)
Sets the string value. |
void |
setValue(Object v)
Sets the value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KeyValue()
public KeyValue(String kv)
kv - the key value in string format.
public KeyValue(String k,
Object v)
k - the key.v - the value.| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectpublic String getKey()
IllegalStateException - if not set.public void setKey(String k)
k - the key.
NullPointerException - if null.public Object getValue()
IllegalStateException - if not set.public void setValue(Object v)
v - the valie.
NullPointerException - if null.public String getString()
IllegalStateException - if not set.public void setString(String s)
s - the valie.
NullPointerException - if null.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||