Package io.camunda.zeebe.msgpack.value
Class ObjectValue
java.lang.Object
io.camunda.zeebe.msgpack.value.BaseValue
io.camunda.zeebe.msgpack.value.ObjectValue
- All Implemented Interfaces:
Recyclable
- Direct Known Subclasses:
UnpackedObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeclareProperty(BaseProperty<? extends BaseValue> prop) booleanEquality of ObjectValue objects is based on equality of properties (declared, undeclared, recycled).intinthashCode()Hashcode of an ObjectValue object is generated based on the properties (declared, undeclared, recycled).booleanisEmpty()voidread(MsgPackReader reader) voidreset()voidwrite(MsgPackWriter writer) Caution: In case not all properties are writeable (i.e.voidwriteJSON(StringBuilder builder)
-
Constructor Details
-
ObjectValue
public ObjectValue()
-
-
Method Details
-
declareProperty
-
reset
public void reset() -
writeJSON
-
write
Caution: In case not all properties are writeable (i.e. value not set and no default), this method may write some of the values and only then throw an exception. The same exception is raised bygetEncodedLength(). If you call that first and it succeeds, you are safe to write all the values. -
read
-
getEncodedLength
public int getEncodedLength()- Specified by:
getEncodedLengthin classBaseValue
-
hashCode
public int hashCode()Hashcode of an ObjectValue object is generated based on the properties (declared, undeclared, recycled). -
equals
Equality of ObjectValue objects is based on equality of properties (declared, undeclared, recycled). -
isEmpty
public boolean isEmpty()
-