Class Cause.Builder

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Cause.Builder append​(java.lang.Object cause)
      Appends the specified object to the cause.
      Cause.Builder appendAll​(java.util.Collection<java.lang.Object> causes)
      Appends all specified objects onto the cause.
      Cause build()  
      Cause build​(EventContext ctx)
      Constructs a new Cause with information added to the builder.
      Cause.Builder from​(Cause value)
      Resets this builder to the values of the given built object.
      Cause.Builder insert​(int position, java.lang.Object cause)
      Inserts the specified object into the cause.
      Cause.Builder reset()
      Resets this builder to a "default" state such that there is no remaining data to set.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • append

        public Cause.Builder append​(java.lang.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,
                                    java.lang.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​(java.util.Collection<java.lang.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