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 by TypeBasedMultiplexer to set actions (consumers) for matching classes.
  • Method Summary

    Modifier and Type
    Method
    Description
    then(Consumer<E> consumer)
    Sets the callback (consumer) to be called if the type of obj is the previously set predicateClass.
  • Method Details

    • then

      TypeBasedMultiplexer then(Consumer<E> consumer)
      Sets the callback (consumer) to be called if the type of obj is the previously set predicateClass.
      Parameters:
      consumer - the callback to be called if the type of obj is the previously set class.
      Returns:
      the parent multiplexer instance