T
- the type of the items in the node listpublic class ListRemoveChange<T extends Serializable> extends AbstractListChange<T>
list
node feature.Constructor and Description |
---|
ListRemoveChange(NodeList<T> list,
int index,
T removedItem)
Creates a new list remove change.
|
Modifier and Type | Method and Description |
---|---|
AbstractListChange<T> |
copy(int indx)
Gets a copy of the change with the same data except
index . |
T |
getRemovedItem()
Gets the removed item.
|
protected void |
populateJson(elemental.json.JsonObject json,
ConstantPool constantPool)
Overridden by subclasses to populate a JSON object when serializing.
|
getIndex, getNodeList
getFeature
getNode, toJson
public T getRemovedItem()
This method is public only for testing reasons.
public AbstractListChange<T> copy(int indx)
AbstractListChange
index
.copy
in class AbstractListChange<T extends Serializable>
indx
- the new index of the changeprotected void populateJson(elemental.json.JsonObject json, ConstantPool constantPool)
NodeChange
populateJson
in class NodeFeatureChange
json
- the json object to populateconstantPool
- the constant pool to use for serializing constant pool
referencesCopyright © 2019. All rights reserved.