public class SerializerArray<T>
extends GroupSerializerObjectArray
Serializes an object array of non-primitive objects. This serializer takes two parameters: - serializer used for each component - componentType is class used to instantiate arrays. Generics are erased at runtime, this class controls what type of array will be instantiated. See java.lang.reflect.Array#newInstance(Class, int)
Modifier and Type | Field and Description |
---|---|
java.lang.Class<T> |
componentType |
Serializer<T> |
serializer |
BIG_DECIMAL, BIG_INTEGER, BOOLEAN, BYTE, BYTE_ARRAY, BYTE_ARRAY_DELTA, BYTE_ARRAY_DELTA2, BYTE_ARRAY_NOSIZE, CHAR, CHAR_ARRAY, CLASS, DATE, DOUBLE, DOUBLE_ARRAY, ELSA, FLOAT, FLOAT_ARRAY, ILLEGAL_ACCESS, INTEGER, INTEGER_DELTA, INTEGER_PACKED, INT_ARRAY, JAVA, LONG, LONG_ARRAY, LONG_DELTA, LONG_PACKED, RECID, RECID_ARRAY, SHORT, SHORT_ARRAY, STRING, STRING_ASCII, STRING_DELTA, STRING_DELTA2, STRING_INTERN, STRING_NOSIZE, STRING_ORIGHASH, UUID
Constructor and Description |
---|
SerializerArray()
Wraps given serializer and produces Object[] serializer. To produce array with different component type, specify extra class.
|
SerializerArray()
Wraps given serializer and produces array serializer.
|
Modifier and Type | Method and Description |
---|---|
int |
compare() |
T[] |
deserialize() |
boolean |
equals() |
boolean |
equals() |
int |
hashCode() |
int |
hashCode() |
boolean |
isTrusted() |
void |
serialize() |
valueArrayCopyOfRange, valueArrayDeleteValue, valueArrayDeserialize, valueArrayEmpty, valueArrayFromArray, valueArrayGet, valueArrayPut, valueArraySearch, valueArraySearch, valueArraySerialize, valueArraySize, valueArrayToArray, valueArrayUpdateVal
nextValue, valueArrayBinaryGet, valueArrayBinarySearch, valueArrayCopyOfRange, valueArrayDeleteValue, valueArrayDeserialize, valueArrayEmpty, valueArrayFromArray, valueArrayGet, valueArrayPut, valueArraySearch, valueArraySearch, valueArraySerialize, valueArraySize, valueArrayToArray, valueArrayUpdateVal
clone, compare, deserialize, deserializeFromLong, equals, fixedSize, hashCode, isTrusted, needsAvailableSizeHint, serialize
public Serializer<T> serializer
public java.lang.Class<T> componentType