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