modhelxs.state_management
Class TransientValue<T>

java.lang.Object
  extended by modhelxs.state_management.Value<T>
      extended by modhelxs.state_management.Attribute<T>
          extended by modhelxs.state_management.TransientValue<T>
All Implemented Interfaces:
StateValue

public class TransientValue<T>
extends Attribute<T>

A TransientValue is an Attribute that never changes its permanent value.


Constructor Summary
TransientValue(java.lang.Class<T> type)
          Create a TransientValue for storing a value of type type.
 
Method Summary
 void commit()
          Commit the transient value into the permanent value.
 
Methods inherited from class modhelxs.state_management.Attribute
getValue, revert, setValue, setValue, toString
 
Methods inherited from class modhelxs.state_management.Value
getType, init, initFromProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransientValue

public TransientValue(java.lang.Class<T> type)
Create a TransientValue for storing a value of type type.

Method Detail

commit

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

Specified by:
commit in interface StateValue
Overrides:
commit in class Attribute<T>