|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StateMap
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 | |
---|---|
void |
clearState()
clear all state information |
Object |
getState(Object key)
get a property in this StateMap |
Set |
getStateKeys()
get a keyset for this StateMap (whether or not the set is backed by the data store depends on the implementation) |
Map |
getStateStore()
get a Map that holds the state values (whether or not the Map is backed by the data store depends on the implementation) |
void |
putState(Object key,
Object val)
set a property in this StateMap |
Object |
removeState(Object key)
remove a property in this StateMap |
Method Detail |
---|
void putState(Object key, Object val)
key
- the key objectval
- the value objectObject getState(Object key)
key
- the key object
Object removeState(Object key)
key
- the key object
Set getStateKeys()
Map getStateStore()
void clearState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |