@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface CollectionType
CollectionType,
UserCollectionType| Modifier and Type | Required Element and Description |
|---|---|
String |
type
Names the type.
|
| Modifier and Type | Optional Element and Description |
|---|---|
Parameter[] |
parameters
Specifies configuration information for the type.
|
Class<?> |
semantics
Specifies the class to use the semantics of.
|
public abstract String type
CollectionType or
UserCollectionType). Could also name a custom type defined via a
@TypeDefpublic abstract Class<?> semantics
Set will use Set semantics.
When not specified, will be inferred from the interfaces on the property
as long as it extends a standard Collection or Map.public abstract Parameter[] parameters
UserCollectionType, it must also implement
ParameterizedType in order to receive these values.Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.