You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.internal.change.

Class AbstractListChange<T extends Serializable>

    • Constructor Detail

      • AbstractListChange

        protected AbstractListChange​(NodeList<T> list,
                                     int index)

        Creates a new list change.

        Parameters:

        list - the changed list

        index - the index of the add operations

    • Method Detail

      • getIndex

        public int getIndex()

        Gets the index of the change.

        Returns:

        the index

      • getNodeList

        protected NodeList<T> getNodeList()

        Gets a changed list.

        Returns:

        the changed list

      • 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 change

        Returns:

        a copy of the change based on new index

      • setIndex

        public void setIndex​(int index)

        Sets the index of this change in the change list.

        Note: This should be used only when list of changes is being re-indexed after adding a new change.

        Parameters:

        index - Integer value.