public final class ModeParameterList extends Object implements IResponseData
This class uses the builder pattern to minimize the number of constructors and to avoid constructor use with a lot of
null parameters.
| Modifier and Type | Method and Description |
|---|---|
static ModeParameterList |
build(ModeParameterListBuilder builder)
Returns a new
ModeParameterList instance based the variables of the builder object. |
void |
serialize(ByteBuffer byteBuffer,
int index)
Inserts a serialized representation of the object into the specified
ByteBuffer. |
int |
size()
Returns the size in bytes of the object's serialized representation.
|
public static ModeParameterList build(ModeParameterListBuilder builder)
ModeParameterList instance based the variables of the builder object. If these
variables are mutually exclusive, then this method will return null instead.builder - contains all necessary information to create a ModeParameterList objectModeParameterList or nullpublic void serialize(ByteBuffer byteBuffer, int index)
ISerializableByteBuffer. The serialized object
will occupy the byte positions from index to index + ISerializable.size() - 1.serialize in interface ISerializablebyteBuffer - where to insert the serialized object representationindex - the position of the first byte of the serialized object in the ByteBufferpublic int size()
ISerializablesize in interface ISerializableCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.