public class ElementIdSerializer extends Object implements Serializer<ElementId>
Constructor and Description |
---|
ElementIdSerializer() |
Modifier and Type | Method and Description |
---|---|
ElementId |
deserialize(byte[] serialization)
REstores an object from its serialization
|
static ElementId |
deserialize(com.hp.sdn.model.proto.ElementIdProto.ElementId msg) |
byte[] |
serialize(ElementId subject)
Serializes the subject.
|
static com.hp.sdn.model.proto.ElementIdProto.ElementId |
valueOf(ElementId subject) |
public byte[] serialize(ElementId subject)
Serializer
serialize
in interface Serializer<ElementId>
subject
- subject to serializesubject
public static com.hp.sdn.model.proto.ElementIdProto.ElementId valueOf(ElementId subject)
public ElementId deserialize(byte[] serialization) throws IllegalArgumentException
Serializer
deserialize
in interface Serializer<ElementId>
serialization
- serializationIllegalArgumentException
- error during deserializationpublic static ElementId deserialize(com.hp.sdn.model.proto.ElementIdProto.ElementId msg)
Copyright © 2015. All Rights Reserved.