E - the type of the input to the operation.@FunctionalInterface public static interface TypeBasedMultiplexer.OnTypeConsumer<E>
TypeBasedMultiplexer to set actions (consumers) for matching
classes.| Modifier and Type | Method and Description |
|---|---|
TypeBasedMultiplexer |
then(Consumer<E> consumer)
Sets the callback (consumer) to be called if the type of
obj is the previously set
predicateClass. |
TypeBasedMultiplexer then(Consumer<E> consumer)
obj is the previously set
predicateClass.consumer - the callback to be called if the type of obj is the previously set class.Copyright © 2017 Everit Kft.. All rights reserved.