|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 必需 | 可选 | 详细信息: 元素 | |||||||||
@Target(value={FIELD,PARAMETER})
@Retention(value=RUNTIME)
public @interface FillList
| 可选元素摘要 | |
|---|---|
Class<? extends AttributeStrategy> |
collectionElementStrategy
The strategy that will populate the annotated attribute. |
String |
comment
It allows clients to specify a comment on this annotation |
Class<? extends AttributeStrategy<?>> |
mapElementStrategy
The strategy that will populate a map element on an attribute of type Map. |
Class<? extends AttributeStrategy> |
mapKeyStrategy
The strategy that will populate a map key on an attribute of type Map. |
int |
size
The number of elements to create for the collection |
public abstract int size
public abstract Class<? extends AttributeStrategy> collectionElementStrategy
The default, in order to make the strategy actually optional is
type Object. At runtime, only if both the value of this annotation and
the collection element type are Objects, then the collection will be set
with type Object, otherwise the collection element type will win.
public abstract Class<? extends AttributeStrategy> mapKeyStrategy
The default, in order to make the strategy actually optional is
type Object. At runtime, only if both the value of this annotation and
the collection element type are Objects, then the collection will be set
with type Object, otherwise the collection element type will win.
public abstract Class<? extends AttributeStrategy<?>> mapElementStrategy
The default, in order to make the strategy actually optional is
type Object. At runtime, only if both the value of this annotation and
the collection element type are Objects, then the collection will be set
with type Object, otherwise the collection element type will win.
public abstract String comment
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 必需 | 可选 | 详细信息: 元素 | |||||||||