Class ImmutableEvaluatedInputValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableEvaluatedInputValue
- All Implemented Interfaces:
JsonSerializable,RecordValue,EvaluatedInputValue
Immutable implementation of
EvaluatedInputValue.
Use the builder to create immutable instances:
ImmutableEvaluatedInputValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableEvaluatedInputValue. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableEvaluatedInputValue.static ImmutableEvaluatedInputValuecopyOf(EvaluatedInputValue instance) Creates an immutable copy of aEvaluatedInputValuevalue.booleanThis instance is equal to all instances ofImmutableEvaluatedInputValuethat have equal attribute values.inthashCode()Returns a lazily computed hash code from attributes:inputId,inputName,inputValue.toString()Prints the immutable valueEvaluatedInputValuewith attribute values.withInputId(String value) Copy the current immutable object by setting a value for theinputIdattribute.withInputName(String value) Copy the current immutable object by setting a value for theinputNameattribute.withInputValue(String value) Copy the current immutable object by setting a value for theinputValueattribute.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
-
getInputId
- Specified by:
getInputIdin interfaceEvaluatedInputValue- Returns:
- the id of the evaluated input
-
getInputName
- Specified by:
getInputNamein interfaceEvaluatedInputValue- Returns:
- the name of the evaluated input
-
getInputValue
- Specified by:
getInputValuein interfaceEvaluatedInputValue- Returns:
- the value of the evaluated input expression as JSON string
-
withInputId
Copy the current immutable object by setting a value for theinputIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for inputId (can benull)- Returns:
- A modified copy of the
thisobject
-
withInputName
Copy the current immutable object by setting a value for theinputNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for inputName (can benull)- Returns:
- A modified copy of the
thisobject
-
withInputValue
Copy the current immutable object by setting a value for theinputValueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for inputValue (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableEvaluatedInputValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a lazily computed hash code from attributes:inputId,inputName,inputValue. -
toString
Prints the immutable valueEvaluatedInputValuewith attribute values. -
copyOf
Creates an immutable copy of aEvaluatedInputValuevalue. 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 EvaluatedInputValue instance
-
builder
Creates a builder forImmutableEvaluatedInputValue.ImmutableEvaluatedInputValue.builder() .withInputId(String | null) // nullableinputId.withInputName(String | null) // nullableinputName.withInputValue(String | null) // nullableinputValue.build();- Returns:
- A new ImmutableEvaluatedInputValue builder
-