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