|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class that implements KeyValueHolder
can store a key and an object.
KeyValueHolder is used for ListItems for example.
Field Summary | |
static int |
SET_KEY
Set key value |
static int |
SET_VALUE
Set object value |
Method Summary | |
java.lang.Object |
key()
Returns the stored key of the object. |
boolean |
setKey(java.lang.Object key)
Sets the key. |
boolean |
setValue(java.lang.Object object)
Stores the object object as value. |
java.lang.Object |
value()
Returns the stored value. |
Field Detail |
public static final int SET_KEY
public static final int SET_VALUE
Method Detail |
public java.lang.Object key()
public boolean setKey(java.lang.Object key)
key
- new keypublic java.lang.Object value()
public boolean setValue(java.lang.Object object)
object
as value.object
- object to de stored
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |