|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodhelxs.state_management.ListAttribute<T>
public class ListAttribute<T>
| 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 |
|---|
private java.util.List<T> value_
private java.util.List<T> trans_value_
| Constructor Detail |
|---|
public ListAttribute()
public ListAttribute(java.util.List<T> initlist)
| Method Detail |
|---|
public void revert()
revert in interface StateValuepublic void commit()
commit in interface StateValuepublic int size()
public T get(int i)
public void add(T value)
public void remove(int i)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||