Class Behavior.BehaviorBuilder

  • Enclosing class:
    Behavior

    public static class Behavior.BehaviorBuilder
    extends Object
    Immutable builder for creating Behavior by chaining event handlers.

    When handling an event, this Behavior will consider all handlers in the order they were added, looking for the first handler for with both the type and the (optional) predicate match.