public static interface Objective.Builder extends ResettableBuilder<Objective,Objective.Builder>
Objective
instances.Modifier and Type | Method and Description |
---|---|
Objective |
build()
Builds an instance of an
Objective . |
Objective.Builder |
criterion(Criterion criterion)
|
Objective.Builder |
displayName(Text displayName)
Sets the display name of the
Objective . |
Objective.Builder |
name(String name)
Sets the name of the
Objective . |
Objective.Builder |
objectiveDisplayMode(ObjectiveDisplayMode objectiveDisplayMode)
Sets the
ObjectiveDisplayMode of the Objective . |
from, reset
Objective.Builder name(String name)
Objective
.name
- The name to setObjective.Builder displayName(Text displayName)
Objective
.displayName
- The display name to setObjective.Builder criterion(Criterion criterion)
criterion
- The Criterion
to setObjective.Builder objectiveDisplayMode(ObjectiveDisplayMode objectiveDisplayMode)
ObjectiveDisplayMode
of the Objective
.objectiveDisplayMode
- The ObjectiveDisplayMode
to setObjective build() throws IllegalStateException
Objective
.Objective
IllegalStateException
- if the Objective
is not complete