modhelxs.state_management
Class TransientMap<K,V>

java.lang.Object
  extended by modhelxs.state_management.MapAttribute<K,V>
      extended by modhelxs.state_management.TransientMap<K,V>
All Implemented Interfaces:
StateValue

public class TransientMap<K,V>
extends MapAttribute<K,V>

A TransientMap is a MapAttribute that never changes its permanent value.


Constructor Summary
TransientMap()
          Create an empty TransientMap.
TransientMap(java.util.Map<K,V> map)
          Create a TransientMap initialized with map.
 
Method Summary
 void commit()
          Commit the transient value into the permanent value.
 
Methods inherited from class modhelxs.state_management.MapAttribute
get, keySet, put, revert, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransientMap

public TransientMap(java.util.Map<K,V> map)
Create a TransientMap initialized with map.


TransientMap

public TransientMap()
Create an empty TransientMap.

Method Detail

commit

public void commit()
Commit the transient value into the permanent value.

Specified by:
commit in interface StateValue
Overrides:
commit in class MapAttribute<K,V>