public interface Msg
Msg interface.
The interface Msg is used to set/get field in a message which you can serialize/deserialize through a Serializer.| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int aKey)
contains.
|
Object |
get(int aKey)
get.
|
<T> T |
get(int aKey,
Class<T> clazz)
get.
|
Msg |
getAllAsMsg()
getAll
|
Object[] |
getAllAsObjects()
getAllAsObjects.
|
void |
getAllAsObjects(Object... aObjects)
getAllAsObjects.
|
int |
getArrayLength(int aKey)
getArrayLength.
|
boolean |
getAsBoolean(int aKey)
getAsBoolean.
|
boolean[] |
getAsBooleans(int aKey)
getAsBooleans.
|
byte |
getAsByte(int aKey)
getAsByte.
|
byte[] |
getAsBytes(int aKey)
getAsBytes.
|
double |
getAsDouble(int aKey)
getAsDouble.
|
double[] |
getAsDoubles(int aKey)
getAsDoubles.
|
float |
getAsFloat(int aKey)
getAsFloat.
|
float[] |
getAsFloats(int aKey)
getAsFloats.
|
int |
getAsInt(int aKey)
getAsInt.
|
int[] |
getAsInts(int aKey)
getAsInts.
|
long |
getAsLong(int aKey)
getAsLong.
|
long[] |
getAsLongs(int aKey)
getAsLongs.
|
Msg |
getAsMsg(int aKey)
getAsMsg.
|
void |
getAsMsg(int aKey,
Msg destMsg)
getAsMsg.
|
Msg[] |
getAsMsgs(int aKey)
getAsMsgs.
|
void |
getAsMsgs(int aKey,
Msg... destMsgs)
getAsMsgs.
|
Null |
getAsNull(int aKey)
getAsNull.
|
Boolean |
getAsNullableBoolean(int aKey)
getAsNullableBoolean.
|
Boolean[] |
getAsNullableBooleans(int aKey)
getAsNullableBooleans.
|
Byte |
getAsNullableByte(int aKey)
getAsNullableByte.
|
Byte[] |
getAsNullableBytes(int aKey)
getAsNullableBytes.
|
Double |
getAsNullableDouble(int aKey)
getAsNullableDouble.
|
Double[] |
getAsNullableDoubles(int aKey)
getAsNullableDoubles.
|
Float |
getAsNullableFloat(int aKey)
getAsNullableFloat.
|
Float[] |
getAsNullableFloats(int aKey)
getAsNullableFloats.
|
Integer |
getAsNullableInteger(int aKey)
getAsNullableInt.
|
Integer[] |
getAsNullableIntegers(int aKey)
getAsNullableIntegers.
|
Long |
getAsNullableLong(int aKey)
getAsNullableLong.
|
Long[] |
getAsNullableLongs(int aKey)
getAsNullableLongs.
|
Short |
getAsNullableShort(int aKey)
getAsNullableShort.
|
Short[] |
getAsNullableShorts(int aKey)
getAsNullableShorts.
|
Object[] |
getAsObjects(int aKey)
getAsObjects.
|
short |
getAsShort(int aKey)
getAsShort.
|
short[] |
getAsShorts(int aKey)
getAsShorts.
|
String |
getAsString(int aKey)
getAsString.
|
String[] |
getAsStrings(int aKey)
getAsStrings.
|
int |
getKeyMax()
getKeyMax.
|
int[] |
getKeysArray()
getKeysArray.
|
int |
getKeysLength()
getKeysLength.
|
Type |
getType(int aKey)
getType.
|
byte |
getTypeAsByte(int aKey)
getTypeAsByte.
|
boolean |
isArray(int aKey)
isArray.
|
boolean |
isByteBufferSerializable()
isByteBufferSerializable.
|
boolean |
isByteBufSerializable()
isByteBufSerializable.
|
boolean |
isBytesSerializable()
isBytesSerializable.
|
boolean |
isEmpty()
isEmpty.
|
boolean |
isSerializable()
isSerializable.
|
void |
remove(int... aKeys)
remove.
|
void |
removeAll()
removeAll.
|
void |
set(int aKey,
boolean... aBooleans)
set.
|
void |
set(int aKey,
Boolean... aBooleans)
set.
|
void |
set(int aKey,
boolean aBoolean)
set.
|
void |
set(int aKey,
Boolean aBoolean)
set.
|
void |
set(int aKey,
Boolean aBoolean,
boolean optimizeLength)
set.
|
void |
set(int aKey,
byte... aBytes)
set.
|
void |
set(int aKey,
Byte... aBytes)
set.
|
void |
set(int aKey,
byte aByte)
set.
|
void |
set(int aKey,
Byte aByte)
set.
|
void |
set(int aKey,
Byte aByte,
boolean optimizeLength)
set.
|
void |
set(int aKey,
double... aDoubles)
set.
|
void |
set(int aKey,
Double... aDoubles)
set.
|
void |
set(int aKey,
double aDouble)
set.
|
void |
set(int aKey,
Double aDouble)
set.
|
void |
set(int aKey,
double aDouble,
boolean optimizeLength)
set.
|
void |
set(int aKey,
Double aDouble,
boolean optimizeLength)
set.
|
void |
set(int aKey,
double aDouble,
int aScale)
set.
|
void |
set(int aKey,
Double aDouble,
int aScale)
set.
|
void |
set(int aKey,
Double aDouble,
int aScale,
boolean optimizeLength)
set.
|
void |
set(int aKey,
float... aFloats)
set.
|
void |
set(int aKey,
Float... aFloats)
set.
|
void |
set(int aKey,
float aFloat)
set.
|
void |
set(int aKey,
Float aFloat)
set.
|
void |
set(int aKey,
Float aFloat,
boolean optimizeLength)
set.
|
void |
set(int aKey,
int... aInts)
set.
|
void |
set(int aKey,
int aInt)
set.
|
void |
set(int aKey,
int aInt,
boolean optimizeLength)
set.
|
void |
set(int aKey,
Integer... aInts)
set.
|
void |
set(int aKey,
Integer aInt)
set.
|
void |
set(int aKey,
Integer aInt,
boolean optimizeLength)
set.
|
void |
set(int aKey,
long... aLongs)
set.
|
void |
set(int aKey,
Long... aLongs)
set.
|
void |
set(int aKey,
long aLong)
set.
|
void |
set(int aKey,
Long aLong)
set.
|
void |
set(int aKey,
long aLong,
boolean optimizeLength)
set.
|
void |
set(int aKey,
Long aLong,
boolean optimizeLength)
set.
|
void |
set(int aKey,
Msg... aMsgs)
set.
|
void |
set(int aKey,
Msg aMsg)
set.
|
void |
set(int aKey,
Null aNull)
set.
|
void |
set(int aKey,
Object anObject)
set.
|
void |
set(int aKey,
Object aObject,
boolean optimizeLength)
set.
|
void |
set(int aKey,
short... aShorts)
set.
|
void |
set(int aKey,
Short... aShorts)
set.
|
void |
set(int aKey,
short aShort)
set.
|
void |
set(int aKey,
Short aShort)
set.
|
void |
set(int aKey,
short aShort,
boolean optimizeLength)
set.
|
void |
set(int aKey,
Short aShort,
boolean optimizeLength)
set.
|
void |
set(int aKey,
String... aStrings)
set.
|
void |
set(int aKey,
String aString)
set.
|
void |
set(int aKey,
String[] aStrings,
boolean forceAsciiEncoding)
set.
|
void |
set(int aKey,
String aString,
boolean forceAsciiEncoding)
set.
|
void |
setAll(Msg aMsg)
setAll.
|
void |
setAll(Object... aObjects)
setAll.
|
boolean isEmpty()
isEmpty.
boolean isSerializable()
isSerializable.
boolean isBytesSerializable()
isBytesSerializable.
boolean isByteBufferSerializable()
isByteBufferSerializable.
boolean isByteBufSerializable()
isByteBufSerializable.
int[] getKeysArray()
getKeysArray.
int getKeyMax()
getKeyMax.
int getKeysLength()
getKeysLength.
Type getType(int aKey)
getType.
aKey - a unsigned int.byte getTypeAsByte(int aKey)
getTypeAsByte.
aKey - a unsigned int.boolean isArray(int aKey)
isArray.
aKey - an unsigned int.int getArrayLength(int aKey)
getArrayLength.
aKey - an unsigned int.boolean contains(int aKey)
contains.
aKey - an unsigned int.Object get(int aKey)
get.
aKey - an unsigned int.<T> T get(int aKey,
Class<T> clazz)
get.
T - the type you want to get.aKey - an unsigned int.clazz - a class you want to get.Null getAsNull(int aKey)
getAsNull.
aKey - an unsigned int.boolean getAsBoolean(int aKey)
getAsBoolean.
Can throw new IllegalArgumentException if the key is not present in the Msg (can return null for a primitive type). UseaKey - an unsigned int.Boolean getAsNullableBoolean(int aKey)
getAsNullableBoolean.
aKey - an unsigned int.byte getAsByte(int aKey)
getAsByte.
Can throw new IllegalArgumentException if the key is not present in the Msg (can return null for a primitive type). UseaKey - an unsigned int aKey.Byte getAsNullableByte(int aKey)
getAsNullableByte.
aKey - an unsigned int.short getAsShort(int aKey)
getAsShort.
Can throw new IllegalArgumentException if the key is not present in the Msg (can return null for a primitive type). UseaKey - an unsigned int.Short getAsNullableShort(int aKey)
getAsNullableShort.
aKey - an unsigned int.int getAsInt(int aKey)
getAsInt.
Can throw new IllegalArgumentException if the key is not present in the Msg (can return null for a primitive type). UseaKey - an unsigned int.Integer getAsNullableInteger(int aKey)
getAsNullableInt.
aKey - an unsigned int.long getAsLong(int aKey)
getAsLong.
Can throw new IllegalArgumentException if the key is not present in the Msg (can return null for a primitive type). UseaKey - an unsigned int.Long getAsNullableLong(int aKey)
aKey - an unsigned int.float getAsFloat(int aKey)
getAsFloat.
Can throw new IllegalArgumentException if the key is not present in the Msg (can return null for a primitive type). UseaKey - an unsigned int.Float getAsNullableFloat(int aKey)
getAsNullableFloat.
aKey - an unsigned int.double getAsDouble(int aKey)
getAsDouble.
Can throw new IllegalArgumentException if the key is not present in the Msg (can return null for a primitive type). UseaKey - an unsigned int.Double getAsNullableDouble(int aKey)
getAsNullableDouble.
aKey - an unsigned int.String getAsString(int aKey)
getAsString.
aKey - an unsigned int.Msg getAsMsg(int aKey)
getAsMsg.
aKey - an unsigned int.void getAsMsg(int aKey,
Msg destMsg)
getAsMsg.
aKey - an unsigned int.destMsg - the msg to set the field of aKey.boolean[] getAsBooleans(int aKey)
getAsBooleans.
aKey - an unsigned int.Boolean[] getAsNullableBooleans(int aKey)
getAsNullableBooleans.
aKey - an unsigned int.byte[] getAsBytes(int aKey)
getAsBytes.
aKey - an unsigned int.Byte[] getAsNullableBytes(int aKey)
getAsNullableBytes.
aKey - an unsigned int.short[] getAsShorts(int aKey)
getAsShorts.
aKey - an unsigned int.Short[] getAsNullableShorts(int aKey)
getAsNullableShorts.
aKey - an unsigned int.int[] getAsInts(int aKey)
getAsInts.
aKey - an unsigned int.Integer[] getAsNullableIntegers(int aKey)
getAsNullableIntegers.
aKey - an unsigned int.long[] getAsLongs(int aKey)
getAsLongs.
aKey - an unsigned int.Long[] getAsNullableLongs(int aKey)
getAsNullableLongs.
aKey - an unsigned int.float[] getAsFloats(int aKey)
getAsFloats.
aKey - an unsigned int.Float[] getAsNullableFloats(int aKey)
getAsNullableFloats.
aKey - an unsigned int.double[] getAsDoubles(int aKey)
getAsDoubles.
aKey - an unsigned int.Double[] getAsNullableDoubles(int aKey)
getAsNullableDoubles.
aKey - an unsigned int.String[] getAsStrings(int aKey)
getAsStrings.
aKey - an unsigned int.Msg[] getAsMsgs(int aKey)
getAsMsgs.
aKey - an unsigned int.void getAsMsgs(int aKey,
Msg... destMsgs)
getAsMsgs.
aKey - an unsigned int.destMsgs - a Msg... to set the field of aKey (a copy).Object[] getAsObjects(int aKey)
getAsObjects.
aKey - an unsigned int.Msg getAllAsMsg()
getAll
.Object[] getAllAsObjects()
getAllAsObjects.
Each key is representing with the index of the array and each value is representing with the values of the array return.void getAllAsObjects(Object... aObjects)
getAllAsObjects.
Each key is representing with the index of the array and each value is representing with the values of the array return. Use retrieveKeyMax before to allocate before the right number in the anObjects.aObjects - objects representing the msg to set.void set(int aKey,
Null aNull)
set.
aKey - an unsigned int.aNull - a Null object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Object anObject)
set.
aKey - an unsigned int.anObject - a Object object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Object aObject,
boolean optimizeLength)
aKey - an unsigned int.aObject - a Object object to set in the field of aKey (a reference, not a copy).optimizeLength - an boolean to force/unforce optimization of length notably of null object or when the value of the object permits it (the
default is true).void set(int aKey,
boolean aBoolean)
set.
aKey - an unsigned int.aBoolean - a boolean to set in the field of aKey.void set(int aKey,
Boolean aBoolean)
set.
aKey - an unsigned int.aBoolean - a Boolean object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Boolean aBoolean,
boolean optimizeLength)
set.
aKey - an unsigned int.aBoolean - a Boolean object to set in the field of aKey (a reference, not a copy).optimizeLength - a boolean to force/unforce optimization of length notably of null object or when the value of the object permits it (the
default is true).void set(int aKey,
byte aByte)
set.
aKey - an unsigned int.aByte - a byte to set in the field of aKey.void set(int aKey,
Byte aByte)
set.
aKey - an unsigned int.aByte - a Byte object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Byte aByte,
boolean optimizeLength)
set.
aKey - an unsigned int.aByte - a byte.optimizeLength - a boolean to force/unforce optimization of length notably of null object or when the value of the object permits it (the
default is true).void set(int aKey,
short aShort)
set.
aKey - an unsigned int.aShort - a short to set in the field of aKey.void set(int aKey,
short aShort,
boolean optimizeLength)
set.
aKey - an unsigned int.aShort - a short to set in the field of aKey.optimizeLength - a boolean to force/unforce optimization of length notably of null object or when the value of the object permits it (the
default is true).void set(int aKey,
Short aShort)
set.
aKey - an unsigned int.aShort - a Short object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Short aShort,
boolean optimizeLength)
set.
aKey - an unsigned int.aShort - a Short object to set in the field of aKey (a reference, not a copy).optimizeLength - a boolean to force/unforce optimization of length notably of null object or when the value of the object permits it (the
default is true).void set(int aKey,
int aInt)
set.
aKey - an unsigned int.aInt - an int to set in the field of aKey.void set(int aKey,
int aInt,
boolean optimizeLength)
set.
aKey - an unsigned int.aInt - an int to set in the field of aKey.optimizeLength - a boolean to force/unforce optimization of length notably of null object or when the value of the object permits it (the
default is true).void set(int aKey,
Integer aInt)
set.
aKey - an unsigned int.aInt - a Integer object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Integer aInt,
boolean optimizeLength)
set.
aKey - an unsigned int.aInt - the Integer object to set in the field of aKey (a reference, not a copy).optimizeLength - a boolean to force/unforce optimization of length notably of null object or when the value of the object permits it (the
default is true).void set(int aKey,
long aLong)
set.
aKey - an unsigned int.aLong - a long to set in the field of aKey.void set(int aKey,
long aLong,
boolean optimizeLength)
set.
aKey - an unsigned int.aLong - a long to set in the field of aKey.optimizeLength - a boolean to force/unforce optimization of length notably of null object or when the value of the object permits it (the
default is true).void set(int aKey,
Long aLong)
set.
aKey - an unsigned int.aLong - a Long object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Long aLong,
boolean optimizeLength)
set.
aKey - an unsigned int.aLong - a Long object to set in the field of aKey (a reference, not a copy).optimizeLength - a boolean to force/unforce optimization of length notably of null object or when the value of the object permits it (the
default is true).void set(int aKey,
float aFloat)
set.
aKey - an unsigned int.aFloat - a float to set in the field of aKey.void set(int aKey,
Float aFloat)
set.
aKey - an unsigned int.aFloat - a Float object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Float aFloat,
boolean optimizeLength)
set.
aKey - an unsigned int.aFloat - a Float object to set in the field of aKey (a reference, not a copy).optimizeLength - a boolean to force/unforce optimization of length notably of null object or when the value of the object permits it (the
default is true).void set(int aKey,
double aDouble)
set.
aKey - an unsigned int.aDouble - a double to set in the field of aKey.void set(int aKey,
double aDouble,
boolean optimizeLength)
set.
aKey - an unsigned int.aDouble - a short to set in the field of aKey.optimizeLength - a boolean to force/unforce optimization of length notably of null object or when the value of the object permits it (the
default is true).void set(int aKey,
Double aDouble)
set.
aKey - an unsigned int.aDouble - a Double object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Double aDouble,
boolean optimizeLength)
set.
aKey - an unsigned int.aDouble - a Double object to set in the field of aKey (a reference, not a copy).optimizeLength - a boolean to force/unforce optimization of length notably of null object or when the value of the object permits it (the
default is true).void set(int aKey,
double aDouble,
int aScale)
set.
aKey - an unsigned int.aDouble - a double to set in the field of aKey.aScale - a int which represents the number after the dot if positive and before the dot if negative.void set(int aKey,
Double aDouble,
int aScale)
set.
aKey - an unsigned int.aDouble - a Double object to set in the field of aKey (a reference, not a copy).aScale - a int which represents the number after the dot if positive and before the dot if negative.void set(int aKey,
Double aDouble,
int aScale,
boolean optimizeLength)
set.
aKey - an unsigned int.aDouble - a Double object to set in the field of aKey (a reference, not a copy).aScale - a int which represents the number after the dot if positive and before the dot if negative.optimizeLength - a boolean to force/unforce optimization of length notably of null object or when the value of the object permits it (the
default is true).void set(int aKey,
String aString)
set.
aKey - an unsigned int.aString - a String object to set in the field of aKey (a reference, not a copy).void set(int aKey,
String aString,
boolean forceAsciiEncoding)
set.
aKey - an unsigned int.aString - a String object to set in the field of aKey (a reference, not a copy).forceAsciiEncoding - boolean to consider the aString is encoded in ASCII (default is false, UTF8 is used).void set(int aKey,
Msg aMsg)
set.
aKey - an unsigned int.aMsg - a Msg object to set in the field of aKey (a reference, not a copy).void set(int aKey,
boolean... aBooleans)
set.
aKey - an unsigned int.aBooleans - a boolean... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Boolean... aBooleans)
set.
aKey - an unsigned int.aBooleans - a Boolean[] object to set in the field of aKey (a reference, not a copy).void set(int aKey,
byte... aBytes)
set.
aKey - an unsigned int.aBytes - a byte... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Byte... aBytes)
set.
aKey - an unsigned int.aBytes - a Byte... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
short... aShorts)
set.
aKey - an unsigned int.aShorts - a short... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Short... aShorts)
set.
aKey - an unsigned int.aShorts - a Short... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
int... aInts)
set.
aKey - an unsigned int.aInts - a int... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Integer... aInts)
set.
aKey - an unsigned int.aInts - a Integer... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
long... aLongs)
set.
aKey - an unsigned int.aLongs - a long... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Long... aLongs)
set.
aKey - an unsigned int.aLongs - a Long... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
float... aFloats)
set.
aKey - an unsigned int.aFloats - a float... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Float... aFloats)
set.
aKey - an unsigned int.aFloats - a Float... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
double... aDoubles)
set.
aKey - an unsigned int.aDoubles - a double... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
Double... aDoubles)
set.
aKey - an unsigned int.aDoubles - a Double... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
String... aStrings)
set.
aKey - an unsigned int.aStrings - a String... object to set in the field of aKey (a reference, not a copy).void set(int aKey,
String[] aStrings,
boolean forceAsciiEncoding)
set.
aKey - an unsigned int.aStrings - a String... object to set in the field of aKey (a reference, not a copy).forceAsciiEncoding - boolean to consider the aString is encoded in ASCII (default is false, UTF8 is used).void set(int aKey,
Msg... aMsgs)
set.
aKey - an unsigned int.aMsgs - a Msg... object to set in the field of aKey (a reference, not a copy).void setAll(Msg aMsg)
setAll.
aMsg - the fields of aMsg to set in the msg.void setAll(Object... aObjects)
setAll.
Each key is representing with the index of the array and each value is representing with the value of the array in argument.aObjects - the fields to set in the msg.void remove(int... aKeys)
remove.
aKeys - an unsigned int...void removeAll()
removeAll.
Copyright © 2012–2014 hermod. All rights reserved.