@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface CollectionElementType
Types.
Example in the WebService return type of a List.
This will align the type of Writer of the type within the Collection.as an example use case| Modifier and Type | Required Element and Description |
|---|---|
Class[] |
value
Class(s) type of all elements expected within the
Collection |
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
allowExtends
If the types can be
value() and any of its extended types |
public abstract Class[] value
Collectionpublic abstract boolean allowExtends
value() and any of its extended typesCopyright © 2018. All rights reserved.