Package io.camunda.zeebe.protocol.record
Class ImmutableRecordValue
java.lang.Object
io.camunda.zeebe.protocol.record.ImmutableRecordValue
- All Implemented Interfaces:
JsonSerializable,RecordValue
Immutable implementation of
RecordValue.
Use the builder to create immutable instances:
ImmutableRecordValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableRecordValue. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableRecordValue.Builderbuilder()Creates a builder forImmutableRecordValue.static ImmutableRecordValuecopyOf(RecordValue instance) Creates an immutable copy of aRecordValuevalue.booleanThis instance is equal to all instances ofImmutableRecordValuethat have equal attribute values.inthashCode()Returns a constant hash code value.toString()Prints the immutable valueRecordValue.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
-
equals
This instance is equal to all instances ofImmutableRecordValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueRecordValue. -
copyOf
Creates an immutable copy of aRecordValuevalue. 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 RecordValue instance
-
builder
Creates a builder forImmutableRecordValue.ImmutableRecordValue.builder() .build();- Returns:
- A new ImmutableRecordValue builder
-