@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface JListField
List
fields.
The annotated method's return type must be List
<E>
, where E
is a supported simple type.
List fields have a "random access" performance profile similar to an ArrayList
. In particular,
List.get()
and List.size()
are constant time, but an insertion
in the middle of the list requires shifting all subsequent values by one.
Note that both primitive types and their corresponding wrapper types are supported as elements. A list whose
elements have primitive type will throw an exception on an attempt to add a null value.
To specify a primitive element type, specify the primitive type name (e.g., "int"
)
as the JField.type()
in the element()
.
public abstract String name
If empty string (default value), the name is inferred from the name of the annotated Java bean getter method.
public abstract int storageId
StorageIdGenerator
will be consulted to auto-generate a value.StorageIdGenerator.generateFieldStorageId()
Copyright © 2016. All rights reserved.