Interface ListModel.OnItemsChanged

Enclosing class:
ListModel
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ListModel.OnItemsChanged
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onItemsChanged(int position, int removed, int added)
    This signal is emitted whenever items were added to or removed
    from @list.
  • Method Details

    • onItemsChanged

      void onItemsChanged(int position, int removed, int added)
      This signal is emitted whenever items were added to or removed
      from @list. At @position, @removed items were removed and @added
      items were added in their place.

      Note: If `removed != added`, the positions of all later items
      in the model change.
      Parameters:
      position - the position at which @list changed
      removed - the number of items removed
      added - the number of items added