public class AddToList extends ListCommand
ListCommand.ListVersionChange| Constructor and Description |
|---|
AddToList(UUID listId,
ListCommand.ListVersionChange listVersionChange,
Value value,
int position)
Initializes an instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPosition()
The index the new element will have in the list when it's added.
|
Value |
getValue() |
String |
toString() |
getListId, getListVersionChangepublic AddToList(UUID listId, ListCommand.ListVersionChange listVersionChange, Value value, int position)
listId - see ListCommand.getListId()listVersionChange - see ListCommand.getListVersionChange()value - see getValue()position - see getPosition()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 Value getValue()
Copyright © 2015 Saxonia Systems AG. All Rights Reserved.