Interface RemoveItemHandler<C extends HasItems<?,?,?>, S extends HasIdentifier<?,?>>
- Type Parameters:
C- the type of the component that contains the items, which extendsHasItemsS- the type of the subcomponent representing an item, which extendsHasIdentifier
- 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 RemoveItemHandler<C extends HasItems<?,?,?>, S extends HasIdentifier<?,?>>
Functional interface for handling the removal of items from a component that contains a collection of items. This interface
is designed to provide a callback mechanism to be invoked whenever an item is removed from the associated component.
-
Method Summary
-
Method Details
-
onRemove
Handles the removal of an item from a component containing a collection of items. This method is intended to be called whenever an item is removed from the component, allowing for custom processing or updates related to the removal.- Parameters:
component- the component from which the item is removeditem- the item being removed from the component
-