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.
@FunctionalInterface public static interface TypeBasedMultiplexer.OnTypeConsumer<E>
Created and used byTypeBasedMultiplexer
to set actions (consumers) for matching classes.
-
-
Method Summary
Modifier and Type Method Description TypeBasedMultiplexer
then(java.util.function.Consumer<E> consumer)
Sets the callback (consumer) to be called if the type ofobj
is the previously setpredicateClass
.
-
-
-
Method Detail
-
then
TypeBasedMultiplexer then(java.util.function.Consumer<E> consumer)
Sets the callback (consumer) to be called if the type ofobj
is the previously setpredicateClass
.- Parameters:
consumer
- the callback to be called if the type ofobj
is the previously set class.- Returns:
- the parent multiplexer instance
-
-