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 Details

    • ObjectValue

      public ObjectValue()
  • Method Details

    • declareProperty

      public ObjectValue declareProperty(BaseProperty<? extends BaseValue> prop)
    • reset

      public void reset()
    • writeJSON

      public void writeJSON(StringBuilder builder)
      Specified by:
      writeJSON in class BaseValue
    • 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 by getEncodedLength(). If you call that first and it succeeds, you are safe to write all the values.
      Specified by:
      write in class BaseValue
    • read

      public void read(MsgPackReader reader)
      Specified by:
      read in class BaseValue
    • getEncodedLength

      public int getEncodedLength()
      Specified by:
      getEncodedLength in class BaseValue
    • hashCode

      public int hashCode()
      Hashcode of an ObjectValue object is generated based on the properties (declared, undeclared, recycled).
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Equality of ObjectValue objects is based on equality of properties (declared, undeclared, recycled).
      Overrides:
      equals in class Object
    • isEmpty

      public boolean isEmpty()