Class AnnotationChangePointAdapter
java.lang.Object
com.inductiveautomation.historian.common.rpc.adapters.points.AnnotationChangePointAdapter
- All Implemented Interfaces:
BinaryAdapter<AnnotationChangePoint>, BinaryDeserializer<AnnotationChangePoint>, BinarySerializer<AnnotationChangePoint>
public class AnnotationChangePointAdapter
extends Object
implements BinaryAdapter<AnnotationChangePoint>
Protobuf binary adapter for
AnnotationChangePoint.-
Method Summary
Modifier and TypeMethodDescriptiondecode(byte[] serialized, DeserializationContext context) DecodesAnnotationChangePointfrom its serialized form.byte[]encode(AnnotationChangePoint any, SerializationContext context) EncodesAnnotationChangePointto bytes.static AnnotationChangePointAdapterReturns the singleton instance.
-
Method Details
-
getInstance
Returns the singleton instance. -
decode
public AnnotationChangePoint decode(byte[] serialized, DeserializationContext context) throws ProtoSerializationException DecodesAnnotationChangePointfrom its serialized form.- Specified by:
decodein interfaceBinaryDeserializer<AnnotationChangePoint>- Parameters:
serialized- the serialized valuecontext- the deserialization context- Returns:
- the decoded value
- Throws:
ProtoSerializationException- if decoding fails
-
encode
public byte[] encode(AnnotationChangePoint any, SerializationContext context) throws ProtoSerializationException EncodesAnnotationChangePointto bytes.- Specified by:
encodein interfaceBinarySerializer<AnnotationChangePoint>- Parameters:
any- the value to encodecontext- the serialization context- Returns:
- the serialized value
- Throws:
ProtoSerializationException- if encoding fails
-