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
public class ObjectValue extends BaseValue
-
-
Constructor Summary
Constructors Constructor Description ObjectValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectValuedeclareProperty(BaseProperty<? extends BaseValue> prop)booleanequals(Object o)intgetEncodedLength()inthashCode()voidread(MsgPackReader reader)voidreset()voidwrite(MsgPackWriter writer)Caution: In case not all properties are writeable (i.e.voidwriteJSON(StringBuilder builder)
-
-
-
Method Detail
-
declareProperty
public ObjectValue declareProperty(BaseProperty<? extends BaseValue> prop)
-
reset
public void reset()
-
writeJSON
public void writeJSON(StringBuilder builder)
-
write
public void write(MsgPackWriter writer)
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
public void read(MsgPackReader reader)
-
getEncodedLength
public int getEncodedLength()
- Specified by:
getEncodedLengthin classBaseValue
-
-