@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface ListCodecType
List
or an array of this type.
For a given list with element type X, the specified DatatypeCodec
implementation class
must have a type parameter T that is equal to X, or if T is itself a type variable
then it must have an upper bound equal to X.
Modifier and Type | Required Element and Description |
---|---|
Class<? extends DatatypeCodec> |
codec
Codec class name.
|
Modifier and Type | Optional Element and Description |
---|---|
EncodableList.BackingStore |
backingStore
The type of backing store to use for list elements.
|
boolean |
manageNullElements
Flag indicating if the serialisation logic should manage null elements.
|
public abstract Class<? extends DatatypeCodec> codec
public abstract EncodableList.BackingStore backingStore
public abstract boolean manageNullElements
If this flag is set to false
and the list might include null
elements, then the
DatatypeCodec
specified by codec()
must be implemented to support the encoding and
decoding of null
objects.
EncodableList.manageNullElements()
,
EncodableList.writeElement(Object, DataOutput, EncoderUtils)