Builder

@ApiStatus.Experimental
class Builder

Collects one answer per question of a spec. Get one from DecisionResponse.builder. Answers can be added in any order, and the built response lists them in spec order. A builder is not safe for use from several threads at once.

Functions

Link copied to clipboard

Adds the answer to one choice question of the spec. A rejected answer leaves the builder as it was.

Adds the answer to one proposition question of the spec. A rejected answer leaves the builder as it was.

Adds the answer to one rating question of the spec. A rejected answer leaves the builder as it was.

Link copied to clipboard

Returns a new response holding the answers added so far, in spec order.