T - The annotation typepublic class AnnotationValueBuilder<T extends Annotation> extends Object
| Modifier and Type | Method and Description |
|---|---|
AnnotationValue<T> |
build()
Build the actual
AnnotationValue. |
AnnotationValueBuilder<T> |
defaultValues(Map<String,Object> defaultValues)
Sets the default values of the annotation.
|
AnnotationValueBuilder<T> |
member(String name,
AnnotationClassValue<?>... classValues)
Sets the given member to the given annotation class values.
|
AnnotationValueBuilder<T> |
member(String name,
AnnotationValue<?>... annotations)
Sets the given member to the given annotation values.
|
AnnotationValueBuilder<T> |
member(String name,
AnnotationValue<?> annotation)
Sets the given member to the given annotation value.
|
AnnotationValueBuilder<T> |
member(String name,
boolean... booleans)
Sets the given member to the given boolean value array.
|
AnnotationValueBuilder<T> |
member(String name,
boolean bool)
Sets the given member to the given boolean value.
|
AnnotationValueBuilder<T> |
member(String name,
byte... bytes)
Sets the given member to the given byte[] value.
|
AnnotationValueBuilder<T> |
member(String name,
byte b)
Sets the given member to the given byte value.
|
AnnotationValueBuilder<T> |
member(String name,
char... chars)
Sets the given member to the given char[] value.
|
AnnotationValueBuilder<T> |
member(String name,
char c)
Sets the given member to the given char value.
|
AnnotationValueBuilder<T> |
member(String name,
Class<?>... types)
Sets the given member to the given type objects.
|
AnnotationValueBuilder<T> |
member(String name,
Class<?> type)
Sets the given member to the given type object.
|
AnnotationValueBuilder<T> |
member(String name,
double... doubles)
Sets the given member to the given double[] value.
|
AnnotationValueBuilder<T> |
member(String name,
double d)
Sets the given member to the given double value.
|
AnnotationValueBuilder<T> |
member(String name,
Enum<?>... enumObjs)
Sets the given member to the given enum objects.
|
AnnotationValueBuilder<T> |
member(String name,
Enum<?> enumObj)
Sets the given member to the given enum object.
|
AnnotationValueBuilder<T> |
member(String name,
float... floats)
Sets the given member to the given float[] value.
|
AnnotationValueBuilder<T> |
member(String name,
float f)
Sets the given member to the given float value.
|
AnnotationValueBuilder<T> |
member(String name,
int... ints)
Sets the given member to the given integer[] value.
|
AnnotationValueBuilder<T> |
member(String name,
int i)
Sets the given member to the given integer value.
|
AnnotationValueBuilder<T> |
member(String name,
long... longs)
Sets the given member to the given long[] value.
|
AnnotationValueBuilder<T> |
member(String name,
long i)
Sets the given member to the given long value.
|
AnnotationValueBuilder<T> |
member(String name,
short... shorts)
Sets the given member to the given short[] value.
|
AnnotationValueBuilder<T> |
member(String name,
short i)
Sets the given member to the given short value.
|
AnnotationValueBuilder<T> |
member(String name,
String... strings)
Sets the given member to the given String[] values.
|
AnnotationValueBuilder<T> |
member(String name,
String str)
Sets the given member to the given string value.
|
AnnotationValueBuilder<T> |
members(Map<CharSequence,Object> members)
Adds the members from the provided map.
|
AnnotationValueBuilder<T> |
stereotype(AnnotationValue<?> annotation)
Adds a stereotype of the annotation.
|
AnnotationValueBuilder<T> |
value(AnnotationValue<?> annotation)
Sets the value member to the given annotation value.
|
AnnotationValueBuilder<T> |
value(boolean bool)
Sets the value member to the given boolean value.
|
AnnotationValueBuilder<T> |
value(char character)
Sets the value member to the given char value.
|
AnnotationValueBuilder<T> |
value(Class<?> type)
Sets the value member to the given type object.
|
AnnotationValueBuilder<T> |
value(double number)
Sets the value member to the given double value.
|
AnnotationValueBuilder<T> |
value(Enum<?> enumObj)
Sets the value member to the given enum object.
|
AnnotationValueBuilder<T> |
value(float f)
Sets the value member to the given float value.
|
AnnotationValueBuilder<T> |
value(int i)
Sets the value member to the given integer value.
|
AnnotationValueBuilder<T> |
value(long i)
Sets the value member to the given long value.
|
AnnotationValueBuilder<T> |
value(String str)
Sets the value member to the given string value.
|
AnnotationValueBuilder<T> |
values(AnnotationClassValue<?>... types)
Sets the value member to the given type objects.
|
AnnotationValueBuilder<T> |
values(AnnotationValue<?>... annotations)
Sets the value member to the given annotation values.
|
AnnotationValueBuilder<T> |
values(Class<?>... types)
Sets the value member to the given type objects.
|
AnnotationValueBuilder<T> |
values(Enum<?>... enumObjs)
Sets the value member to the given enum objects.
|
AnnotationValueBuilder<T> |
values(int... ints)
Sets the value member to the given integer[] value.
|
AnnotationValueBuilder<T> |
values(long... longs)
Sets the value member to the given long[] value.
|
AnnotationValueBuilder<T> |
values(String... strings)
Sets the value member to the given String[] values.
|
@NonNull public AnnotationValue<T> build()
AnnotationValue.AnnotationValue@NonNull public AnnotationValueBuilder<T> stereotype(AnnotationValue<?> annotation)
annotation - The stereotype@NonNull public AnnotationValueBuilder<T> defaultValues(Map<String,Object> defaultValues)
defaultValues - The default values@NonNull public AnnotationValueBuilder<T> value(int i)
i - The integer@NonNull public AnnotationValueBuilder<T> values(@Nullable int... ints)
ints - The integer[]@NonNull public AnnotationValueBuilder<T> value(long i)
i - The long@NonNull public AnnotationValueBuilder<T> values(@Nullable long... longs)
longs - The long[]@NonNull public AnnotationValueBuilder<T> value(@Nullable String str)
str - The string@NonNull public AnnotationValueBuilder<T> values(@Nullable String... strings)
strings - The String[]@NonNull public AnnotationValueBuilder<T> value(boolean bool)
bool - The boolean@NonNull public AnnotationValueBuilder<T> value(char character)
character - The char@NonNull public AnnotationValueBuilder<T> value(double number)
number - The double@NonNull public AnnotationValueBuilder<T> value(float f)
f - The float@NonNull public AnnotationValueBuilder<T> value(@Nullable Enum<?> enumObj)
enumObj - The enum@NonNull public AnnotationValueBuilder<T> values(@Nullable Enum<?>... enumObjs)
enumObjs - The enum[]@NonNull public AnnotationValueBuilder<T> value(@Nullable Class<?> type)
type - The type@NonNull public AnnotationValueBuilder<T> values(@Nullable Class<?>... types)
types - The type[]@NonNull public AnnotationValueBuilder<T> values(@Nullable AnnotationClassValue<?>... types)
types - The type[]@NonNull public AnnotationValueBuilder<T> value(@Nullable AnnotationValue<?> annotation)
annotation - The annotation@NonNull public AnnotationValueBuilder<T> values(@Nullable AnnotationValue<?>... annotations)
annotations - The annotation[]@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, int i)
name - The name of the memberi - The integer@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, byte b)
name - The name of the memberb - The byte@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, char c)
name - The name of the memberc - The char@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, char... chars)
name - The name of the memberchars - The chars@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, double d)
name - The name of the memberd - The double@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, double... doubles)
name - The name of the memberdoubles - The double[]@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, float f)
name - The name of the memberf - The float@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, float... floats)
name - The name of the memberfloats - The float[]@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, @Nullable int... ints)
name - The name of the memberints - The integer[]@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, @Nullable byte... bytes)
name - The name of the memberbytes - The byte[]@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, long i)
name - The name of the memberi - The long@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, short i)
name - The name of the memberi - The short@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, short... shorts)
name - The name of the membershorts - The short[]@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, @Nullable long... longs)
name - The name of the memberlongs - The long[]@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, @Nullable String str)
name - The name of the memberstr - The string@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, @Nullable String... strings)
name - The name of the memberstrings - The String[]@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, boolean bool)
name - The name of the memberbool - The boolean@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, boolean... booleans)
name - The name of the memberbooleans - The booleans@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, @Nullable Enum<?> enumObj)
name - The name of the memberenumObj - The enum@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, @Nullable Enum<?>... enumObjs)
name - The name of the memberenumObjs - The enum[]@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, @Nullable Class<?> type)
name - The name of the membertype - The type@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, @Nullable Class<?>... types)
name - The name of the membertypes - The type[]@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, @Nullable AnnotationValue<?> annotation)
name - The name of the memberannotation - The annotation@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, @Nullable AnnotationValue<?>... annotations)
name - The name of the memberannotations - The annotation[]@NonNull public AnnotationValueBuilder<T> member(@NonNull String name, @Nullable AnnotationClassValue<?>... classValues)
name - The name of the memberclassValues - The annotation[]@NonNull public AnnotationValueBuilder<T> members(@Nullable Map<CharSequence,Object> members)
members - The map of members