com.vaadin.flow.internal.change.
Class AbstractListChange<T extends Serializable>
- java.lang.Object
-
- com.vaadin.flow.internal.change.NodeChange
-
- com.vaadin.flow.internal.change.NodeFeatureChange
-
- com.vaadin.flow.internal.change.AbstractListChange<T>
-
Type Parameters:
T
- the type of the items in the node listAll Implemented Interfaces:
Direct Known Subclasses:
public abstract class AbstractListChange<T extends Serializable> extends NodeFeatureChange
Change describing an operation (add/remove) in a
list
node feature.Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Modifier Constructor and Description protected
AbstractListChange(NodeList<T> list, int index)
Creates a new list change.
-
Method Summary
All Methods 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.
-
Methods inherited from class com.vaadin.flow.internal.change.NodeFeatureChange
getFeature, populateJson
-
Methods inherited from class com.vaadin.flow.internal.change.NodeChange
getNode, toJson
-
-
-
-
Method Detail
-
getIndex
public int getIndex()
Gets the index of the change.
Returns:
the index
-
copy
public abstract AbstractListChange<T> copy(int index)
Gets a copy of the change with the same data except
index
.Parameters:
index
- the new index of the changeReturns:
a copy of the change based on new index
-
-