Interface ListModificationLike<E>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      int getAddedSize()
      Returns the number of items added by this change.
      int getFrom()
      Returns the position in the list where this change occurred.
      java.util.List<? extends E> getRemoved()
      Returns an immutable list of elements removed by this change.
      default int getRemovedSize()
      Returns the number of items removed by this change.
      default int getTo()
      Returns the end position of the change in the modified list.
    • Method Detail

      • getFrom

        int getFrom()
        Returns the position in the list where this change occurred.
      • getRemovedSize

        default int getRemovedSize()
        Returns the number of items removed by this change.
      • getAddedSize

        int getAddedSize()
        Returns the number of items added by this change.
      • getTo

        default int getTo()
        Returns the end position of the change in the modified list. The returned value is equal to getFrom() + getAddedSize().
      • getRemoved

        java.util.List<? extends E> getRemoved()
        Returns an immutable list of elements removed by this change. Before the change occurred, the first element of the returned list was at index getFrom() in the original list. If no elements were removed by this change, returns an empty list. The size of the returned list is equal to the value returned by getRemovedSize().