Class BaseProperty<T extends BaseValue>
- java.lang.Object
-
- io.camunda.zeebe.msgpack.property.BaseProperty<T>
-
- All Implemented Interfaces:
Recyclable
- Direct Known Subclasses:
ArrayProperty,BinaryProperty,BooleanProperty,DocumentProperty,EnumProperty,IntegerProperty,LongProperty,ObjectProperty,PackedProperty,StringProperty
public abstract class BaseProperty<T extends BaseValue> extends Object implements Recyclable
-
-
Field Summary
Fields Modifier and Type Field Description protected TdefaultValueprotected booleanisSetprotected StringValuekeyprotected Tvalue
-
Constructor Summary
Constructors Constructor Description BaseProperty(String keyString, T value)BaseProperty(String keyString, T value, T defaultValue)BaseProperty(T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetEncodedLength()StringValuegetKey()inthashCode()booleanhasValue()voidread(MsgPackReader reader)voidreset()protected TresolveValue()voidset()StringtoString()voidwrite(MsgPackWriter writer)voidwriteJSON(StringBuilder sb)
-
-
-
Field Detail
-
key
protected final StringValue key
-
isSet
protected boolean isSet
-
-
Method Detail
-
set
public void set()
-
reset
public void reset()
- Specified by:
resetin interfaceRecyclable
-
hasValue
public boolean hasValue()
-
getKey
public StringValue getKey()
-
resolveValue
protected T resolveValue()
-
getEncodedLength
public int getEncodedLength()
-
read
public void read(MsgPackReader reader)
-
write
public void write(MsgPackWriter writer)
-
writeJSON
public void writeJSON(StringBuilder sb)
-
-