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