public static final class Cause.Builder extends Object implements ResettableBuilder<Cause,Cause.Builder>
Modifier and Type | Method and Description |
---|---|
Cause.Builder |
append(Object cause)
Appends the specified object to the cause.
|
Cause.Builder |
appendAll(Collection<Object> causes)
Appends all specified objects onto the cause.
|
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,
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.
|
public Cause.Builder append(Object cause)
cause
- The object to append to the cause.public Cause.Builder insert(int position, Object cause)
position
- The position to insert intocause
- The object to insert into the causepublic Cause.Builder appendAll(Collection<Object> causes)
causes
- The objects to add onto the causepublic Cause build(EventContext ctx)
Cause
with information added to the builder.ctx
- The context to build the cause withpublic Cause.Builder from(Cause value)
ResettableBuilder
from
in interface ResettableBuilder<Cause,Cause.Builder>
value
- The built objectpublic Cause.Builder reset()
ResettableBuilder
reset
in interface ResettableBuilder<Cause,Cause.Builder>