Class ImmutableEvaluatedOutputValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableEvaluatedOutputValue
- All Implemented Interfaces:
JsonSerializable,RecordValue,EvaluatedOutputValue
@ParametersAreNonnullByDefault
@Immutable
public final class ImmutableEvaluatedOutputValue
extends Object
implements EvaluatedOutputValue
Immutable implementation of
EvaluatedOutputValue.
Use the builder to create immutable instances:
ImmutableEvaluatedOutputValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableEvaluatedOutputValue. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableEvaluatedOutputValue.copyOf(EvaluatedOutputValue instance) Creates an immutable copy of aEvaluatedOutputValuevalue.booleanThis instance is equal to all instances ofImmutableEvaluatedOutputValuethat have equal attribute values.inthashCode()Returns a lazily computed hash code from attributes:outputId,outputName,outputValue.toString()Prints the immutable valueEvaluatedOutputValuewith attribute values.withOutputId(String value) Copy the current immutable object by setting a value for theoutputIdattribute.withOutputName(String value) Copy the current immutable object by setting a value for theoutputNameattribute.withOutputValue(String value) Copy the current immutable object by setting a value for theoutputValueattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.zeebe.protocol.record.JsonSerializable
toJson
-
Method Details
-
getOutputId
- Specified by:
getOutputIdin interfaceEvaluatedOutputValue- Returns:
- the id of the evaluated output
-
getOutputName
- Specified by:
getOutputNamein interfaceEvaluatedOutputValue- Returns:
- the name of the evaluated output
-
getOutputValue
- Specified by:
getOutputValuein interfaceEvaluatedOutputValue- Returns:
- the value of the evaluated output expression as JSON string
-
withOutputId
Copy the current immutable object by setting a value for theoutputIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for outputId (can benull)- Returns:
- A modified copy of the
thisobject
-
withOutputName
Copy the current immutable object by setting a value for theoutputNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for outputName (can benull)- Returns:
- A modified copy of the
thisobject
-
withOutputValue
Copy the current immutable object by setting a value for theoutputValueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for outputValue (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableEvaluatedOutputValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a lazily computed hash code from attributes:outputId,outputName,outputValue. -
toString
Prints the immutable valueEvaluatedOutputValuewith attribute values. -
copyOf
Creates an immutable copy of aEvaluatedOutputValuevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable EvaluatedOutputValue instance
-
builder
Creates a builder forImmutableEvaluatedOutputValue.ImmutableEvaluatedOutputValue.builder() .withOutputId(String | null) // nullableoutputId.withOutputName(String | null) // nullableoutputName.withOutputValue(String | null) // nullableoutputValue.build();- Returns:
- A new ImmutableEvaluatedOutputValue builder
-