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