modhelxs.state_management
Class ListAttribute<T>

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

public class ListAttribute<T>
extends java.lang.Object
implements StateValue


Field Summary
private  java.util.List<T> trans_value_
           
private  java.util.List<T> value_
           
 
Constructor Summary
ListAttribute()
           
ListAttribute(java.util.List<T> initlist)
           
 
Method Summary
 void add(T value)
          Add a value to the transient list.
 void commit()
           
 T get(int i)
          Get the value associated to a key.
 void remove(int i)
          Remove a value from the transient list.
 void revert()
           
 int size()
          Get the length of this list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value_

private java.util.List<T> value_

trans_value_

private java.util.List<T> trans_value_
Constructor Detail

ListAttribute

public ListAttribute()

ListAttribute

public ListAttribute(java.util.List<T> initlist)
Method Detail

revert

public void revert()
Specified by:
revert in interface StateValue

commit

public void commit()
Specified by:
commit in interface StateValue

size

public int size()
Get the length of this list.


get

public T get(int i)
Get the value associated to a key.


add

public void add(T value)
Add a value to the transient list.


remove

public void remove(int i)
Remove a value from the transient list.