|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the methods needed to implement state in an object. By this we mean that an object is capable of carrying state information along with it--you can put properties into the state and then get them back out.
Key entities that implement StateMap:
Method Summary | |
java.lang.Object |
getState(java.lang.Object key)
get a property in this StateMap |
java.util.List |
getStateKeys()
get a list of the keys for this StateMap |
java.util.Map |
getStateValues()
get a copy of the underlying Map that holds the state values |
void |
putState(java.lang.Object key,
java.lang.Object val)
set a property in this StateMap |
java.lang.Object |
removeState(java.lang.Object key)
remove a property in this StateMap |
Method Detail |
public void putState(java.lang.Object key, java.lang.Object val)
key
- the key objectval
- the value objectpublic java.lang.Object getState(java.lang.Object key)
key
- the key object
public java.lang.Object removeState(java.lang.Object key)
key
- the key object
public java.util.List getStateKeys()
public java.util.Map getStateValues()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |