Class Cause.Builder

    • Method Detail

      • append

        public Cause.Builder append​(Object cause)
        Appends the specified object to the cause.
        Parameters:
        cause - The object to append to the cause.
        Returns:
        The modified builder, for chaining
      • insert

        public Cause.Builder insert​(int position,
                                    Object cause)
        Inserts the specified object into the cause.
        Parameters:
        position - The position to insert into
        cause - The object to insert into the cause
        Returns:
        The modified builder, for chaining
      • appendAll

        public Cause.Builder appendAll​(Collection<Object> causes)
        Appends all specified objects onto the cause.
        Parameters:
        causes - The objects to add onto the cause
        Returns:
        The modified builder, for chaining
      • build

        public Cause build​(EventContext ctx)
        Constructs a new Cause with information added to the builder.
        Parameters:
        ctx - The context to build the cause with
        Returns:
        The built cause