saker.build Documentation TaskDoc JavaDoc Packages
public static final class TaskIdentifier.SimpleTaskIdBuilder
A builder class for creating simple task identifiers.

The simple task identifier consists of arbitrary field names and corresponding arbitrary objects. These pairs will be compared for equality when the task identifier equality is checked.

Methods
public TaskIdentifier
Builds the task identifier.
public SimpleTaskIdBuilder
field(String fieldname, Object value)
Sets the field of the simple task identifier.
Builds the task identifier.

The builder cannot be reused after this call.

The created task identifier.
IllegalStateExceptionIf build() was already called.
Sets the field of the simple task identifier.

Overwrites previous value if field name is already present.

fieldnameThe name of the field. (arbitrary)
valueThe value of the field. (arbitrary)
this builder.
IllegalStateExceptionIf build() was already called.