T - the type of the items in the node listpublic class ListRemoveChange<T extends Serializable> extends AbstractListChange<T>
list node feature.
For internal use only. May be renamed or removed in a future release.
| 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, setIndexgetFeaturegetNode, toJsonpublic T getRemovedItem()
This method is public only for testing reasons.
public AbstractListChange<T> copy(int indx)
AbstractListChangeindex.copy in class AbstractListChange<T extends Serializable>indx - the new index of the changeprotected void populateJson(elemental.json.JsonObject json,
ConstantPool constantPool)
NodeChangepopulateJson in class NodeFeatureChangejson - the json object to populateconstantPool - the constant pool to use for serializing constant pool
referencesCopyright © 2025. All rights reserved.