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