Interface TransferHandler.SupplierHost<T>
- Type Parameters:
T
- The type of handled objects.
- Enclosing interface:
- TransferHandler<T>
public static interface TransferHandler.SupplierHost<T>
Host that enables transfers from registered suppliers.
- Since:
- 5.1.19
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A supplier providing a specific commodity type. -
Method Summary
Modifier and TypeMethodDescription<A> void
registerSupplier
(TransferType<A> type, TransferHandler.SupplierHost.Supplier<T, A> supplier) Registers a supplier for the hosted gadget itself.
-
Method Details
-
registerSupplier
<A> void registerSupplier(TransferType<A> type, TransferHandler.SupplierHost.Supplier<T, A> supplier) Registers a supplier for the hosted gadget itself.- Type Parameters:
A
- The type of transferred commodity.- Parameters:
type
- The type of transfer being registered.supplier
- The supplier to be registered.- Since:
- 5.1.19
-