Buildable.Utils
Modifier and Type | Method and Description |
---|---|
Branch |
build() |
Branch.Builder |
comment(String comment)
OPTIONAL.
|
Branch.Builder |
startAt(String startAt)
REQUIRED.
|
Branch.Builder |
state(String stateName,
State.Builder stateBuilder)
REQUIRED.
|
public Branch.Builder startAt(String startAt)
state(String,
State.Builder)
.startAt
- Name of starting state.public Branch.Builder comment(String comment)
comment
- New comment.public Branch.Builder state(String stateName, State.Builder stateBuilder)
stateName
- Name of the statestateBuilder
- Instance of State.Builder
. Note that
the State
object is not built until the Branch
is built so any modifications on the state builder
will be reflected in this object.