T - The type of annotation to createpublic static interface Annotations.Builder<T extends Annotation>
Annotation instances| Modifier and Type | Method and Description |
|---|---|
T |
build()
Build the
Annotation instance |
Annotations.Builder<T> |
property(String name, Object value)
Set the value of an annotation property to the specified value
|
Annotations.Builder<T> |
value(Object value)
Set the default value() property of an Annotation
|
T build()
Annotation instanceAnnotations.Builder<T> property(String name, Object value)
name - The name of the property. The annotation type is checked to ensure the annotation contains the named propertyvalue - The value of the property.Annotations.Builder<T> value(Object value)
value - The value to assign to the #value() property