Interface AddItemHandler<C extends HasItems<?,?,?>, S extends HasIdentifier<?,?>>
- Type Parameters:
C- the type of the component that can contain items, extendingHasItemsS- the type of the item to be added, extendingHasIdentifier
- 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 AddItemHandler<C extends HasItems<?,?,?>, S extends HasIdentifier<?,?>>
A functional interface that defines a handler for adding items to components. The handler is invoked when an item is added to
a component that implements the
HasItems interface and where the item to be added implements the
HasIdentifier interface.-
Method Summary
-
Method Details
-
onAdd
-