Interface TypeBasedMultiplexer.OnTypeConsumer<E>
- Type Parameters:
E- the type of the input to the operation.
- Enclosing class:
- TypeBasedMultiplexer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Created and used by
TypeBasedMultiplexer to set actions (consumers) for matching
classes.-
Method Summary
Modifier and TypeMethodDescriptionSets the callback (consumer) to be called if the type ofobjis the previously setpredicateClass.
-
Method Details
-
then
Sets the callback (consumer) to be called if the type ofobjis the previously setpredicateClass.- Parameters:
consumer- the callback to be called if the type ofobjis the previously set class.- Returns:
- the parent multiplexer instance
-