Record Class VariableState.Variable
java.lang.Object
java.lang.Record
io.camunda.zeebe.engine.state.immutable.VariableState.Variable
- Enclosing interface:
VariableState
public static record VariableState.Variable(long key, long scopeKey, org.agrona.DirectBuffer name, org.agrona.DirectBuffer value)
extends Record
Data wrapper for a variable.
-
Constructor Summary
ConstructorsConstructorDescriptionVariable
(long key, long scopeKey, org.agrona.DirectBuffer name, org.agrona.DirectBuffer value) Creates an instance of aVariable
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
key()
Returns the value of thekey
record component.org.agrona.DirectBuffer
name()
Returns the value of thename
record component.long
scopeKey()
Returns the value of thescopeKey
record component.final String
toString()
Returns a string representation of this record class.org.agrona.DirectBuffer
value()
Returns the value of thevalue
record component.
-
Constructor Details
-
Variable
public Variable(long key, long scopeKey, org.agrona.DirectBuffer name, org.agrona.DirectBuffer value) Creates an instance of aVariable
record class.- Parameters:
key
- the value for thekey
record componentscopeKey
- the value for thescopeKey
record componentname
- the value for thename
record componentvalue
- the value for thevalue
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
key
public long key()Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
scopeKey
public long scopeKey()Returns the value of thescopeKey
record component.- Returns:
- the value of the
scopeKey
record component
-
name
public org.agrona.DirectBuffer name()Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
value
public org.agrona.DirectBuffer value()Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-