public class AddToList extends Object implements ListCommand
| Constructor and Description |
|---|
AddToList() |
| Modifier and Type | Method and Description |
|---|---|
UUID |
getListId() |
int |
getNewSize()
The new size the list should have after this command has been executed on it.
|
int |
getPosition()
The index the new element will have in the list when it's added.
|
Value |
getValue() |
void |
setListId(UUID listId) |
void |
setNewSize(int newSize) |
void |
setPosition(int position) |
void |
setValue(Value value) |
String |
toString() |
public UUID getListId()
getListId in interface ListCommandpublic void setListId(UUID listId)
setListId in interface ListCommandlistId - the idListCommand.getListId()public int getPosition()
The index of all items in the list thats index is greater or equal to the value returned here has to be incremented by 1 to make this index available.
public void setPosition(int position)
position - The positiongetPosition()public Value getValue()
public void setValue(Value value)
value - the valuegetValue()public int getNewSize()
public void setNewSize(int newSize)
newSize - the new sizeRemoveFromList.getNewSize()Copyright © 2014 Saxonia Systems AG. All Rights Reserved.