T - the type of the items in the node listpublic abstract class AbstractListChange<T extends Serializable> extends NodeFeatureChange
list node
feature.
For internal use only. May be renamed or removed in a future release.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractListChange(NodeList<T> list,
int index)
Creates a new list change.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AbstractListChange<T> |
copy(int index)
Gets a copy of the change with the same data except
index. |
int |
getIndex()
Gets the index of the change.
|
protected NodeList<T> |
getNodeList()
Gets a changed list.
|
void |
setIndex(int index)
Sets the index of this change in the change list.
|
getFeature, populateJsongetNode, toJsonpublic int getIndex()
public abstract AbstractListChange<T> copy(int index)
index.index - the new index of the changepublic void setIndex(int index)
Note: This should be used only when list of changes is being re-indexed after adding a new change.
index - Integer value.Copyright © 2025. All rights reserved.