Package dev.demeng.pluginbase.terminable
Interface TerminableConsumer
- All Known Subinterfaces:
CompositeTerminable
- All Known Implementing Classes:
AbstractCompositeTerminable,AbstractWeakCompositeTerminable,BasePlugin
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescription<T extends AutoCloseable>
Tbind(T terminable) Binds with the given terminable.default <T extends TerminableModule>
TbindModule(T module) Binds with the given terminable module.
-
Method Details
-
bind
Binds with the given terminable.- Type Parameters:
T- the terminable type- Parameters:
terminable- the terminable to bind with- Returns:
- the same terminable
-
bindModule
Binds with the given terminable module.- Type Parameters:
T- the module type- Parameters:
module- the module to bind with- Returns:
- the same module
-