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