Interface UpdateItemHandler<C extends HasItems<?,?,?>, S extends HasIdentifier<?,?>>

Type Parameters:
C - the type of the component containing the items, which extends HasItems
S - the type of the items being updated, which extends HasIdentifier
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 interface UpdateItemHandler<C extends HasItems<?,?,?>, S extends HasIdentifier<?,?>>
A functional interface that defines a handler invoked when an item is updated in a component implementing HasItems.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onUpdate(C component, S oldItem, S newItem)
    Invoked when an item is updated in a component implementing HasItems.
  • Method Details

    • onUpdate

      void onUpdate(C component, S oldItem, S newItem)
      Invoked when an item is updated in a component implementing HasItems.
      Parameters:
      component - the component containing the items, which extends HasItems
      oldItem - the previous state of the item before the update
      newItem - the updated state of the item