|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodhelxs.state_management.MapAttribute<K,V>
public class MapAttribute<K,V>
A state value which stores data in a Map.
| Field Summary | |
|---|---|
private java.util.Map<K,V> |
trans_value_
|
private java.util.Map<K,V> |
value_
|
| Constructor Summary | |
|---|---|
MapAttribute()
|
|
MapAttribute(java.util.Map<K,V> initmap)
|
|
| Method Summary | |
|---|---|
void |
commit()
|
V |
get(K key)
Get the value associated to a key. |
java.util.Set<K> |
keySet()
Return the set of keys of this map. |
V |
put(K key,
V value)
Set the transient value associated to a key. |
void |
revert()
|
java.util.Collection<V> |
values()
Return a collection of the values in this map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Map<K,V> value_
private java.util.Map<K,V> trans_value_
| Constructor Detail |
|---|
public MapAttribute()
public MapAttribute(java.util.Map<K,V> initmap)
| Method Detail |
|---|
public void revert()
revert in interface StateValuepublic void commit()
commit in interface StateValuepublic V get(K key)
public V put(K key,
V value)
public java.util.Set<K> keySet()
public java.util.Collection<V> values()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||