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