public interface AnnotationValueResolver extends ValueResolver<CharSequence>
Modifier and Type | Method and Description |
---|---|
Optional<AnnotationClassValue<?>> |
annotationClassValue(String member)
The
AnnotationClassValue instance for the given member. |
AnnotationClassValue<?>[] |
annotationClassValues(String member)
The
AnnotationClassValue instances for the given member. |
default Optional<Boolean> |
booleanValue()
The Boolean value of the given member.
|
Optional<Boolean> |
booleanValue(String member)
The boolean value of the given member.
|
default boolean[] |
booleanValues()
The boolean[] value for the given member.
|
boolean[] |
booleanValues(String member)
The boolean[] value for the given member.
|
default Optional<Byte> |
byteValue()
The byte value of the given member.
|
Optional<Byte> |
byteValue(String member)
The byte value of the given member.
|
default byte[] |
byteValues()
The byte[] value for the given member.
|
byte[] |
byteValues(String member)
The byte[] value for the given member.
|
default Optional<Character> |
charValue()
The char value of the given member.
|
Optional<Character> |
charValue(String member)
The char value of the given member.
|
default char[] |
charValues()
The char[] value for the given member.
|
char[] |
charValues(String member)
The char[] value for the given member.
|
default Optional<Class<?>> |
classValue()
The value of the annotation as a Class.
|
Optional<Class<?>> |
classValue(String member)
The value of the given annotation member as a Class.
|
<T> Optional<Class<? extends T>> |
classValue(String member,
Class<T> requiredType)
The value of the given annotation member as a Class.
|
default Class<?>[] |
classValues()
The value of the annotation as a Class.
|
Class<?>[] |
classValues(String member)
The value of the given annotation member as a Class.
|
default OptionalDouble |
doubleValue()
The double value of the given member.
|
OptionalDouble |
doubleValue(String member)
The double value of the given member.
|
default double[] |
doubleValues()
The double[] value for the given member.
|
double[] |
doubleValues(String member)
The double[] value for the given member.
|
default <E extends Enum> |
enumValue(Class<E> enumType)
Return the enum value of the given member of the given enum type.
|
<E extends Enum> |
enumValue(String member,
Class<E> enumType)
Return the enum value of the given member of the given enum type.
|
default <E extends Enum> |
enumValues(Class<E> enumType)
Return the enum value of the given member of the given enum type.
|
<E extends Enum> |
enumValues(String member,
Class<E> enumType)
Return the enum value of the given member of the given enum type.
|
default Optional<Float> |
floatValue()
The float value of the given member.
|
Optional<Float> |
floatValue(String member)
The double value of the given member.
|
default float[] |
floatValues()
The float[] value for the given member.
|
float[] |
floatValues(String member)
The float[] value for the given member.
|
Map<CharSequence,Object> |
getValues() |
default OptionalInt |
intValue()
The integer value of the given member.
|
OptionalInt |
intValue(String member)
The integer value of the given member.
|
default int[] |
intValues()
The int[] value for the given member.
|
int[] |
intValues(String member)
The int[] value for the given member.
|
default boolean |
isFalse() |
boolean |
isFalse(String member) |
boolean |
isPresent(CharSequence member)
Is the given member present.
|
default boolean |
isTrue() |
boolean |
isTrue(String member) |
default OptionalLong |
longValue()
The long value of the given member.
|
OptionalLong |
longValue(String member)
The long value of the given member.
|
default long[] |
longValues()
The long[] value for the given member.
|
long[] |
longValues(String member)
The long[] value for the given member.
|
default Optional<Short> |
shortValue()
The integer value of the given member.
|
Optional<Short> |
shortValue(String member)
The short value of the given member.
|
default short[] |
shortValues()
The short[] value for the given member.
|
short[] |
shortValues(String member)
The short[] value for the given member.
|
default Optional<String> |
stringValue()
The string value of the given member.
|
Optional<String> |
stringValue(String member)
The string value of the given member.
|
default String[] |
stringValues()
The string values for the given member.
|
String[] |
stringValues(String member)
The string values for the given member.
|
get, get, get, get
<E extends Enum> Optional<E> enumValue(@NonNull String member, @NonNull Class<E> enumType)
E
- The enum typemember
- The annotation memberenumType
- The required typeOptional
of the enum valuedefault <E extends Enum> Optional<E> enumValue(@NonNull Class<E> enumType)
E
- The enum typeenumType
- The required typeOptional
of the enum value<E extends Enum> E[] enumValues(@NonNull String member, @NonNull Class<E> enumType)
E
- The enum typemember
- The annotation memberenumType
- The required typeOptional
of the enum valuedefault <E extends Enum> E[] enumValues(@NonNull Class<E> enumType)
E
- The enum typeenumType
- The required typeOptional
of the enum valuedefault Optional<Class<?>> classValue()
Optional
classOptional<Class<?>> classValue(@NonNull String member)
member
- The annotation memberOptional
class@NonNull default Class<?>[] classValues()
@NonNull Class<?>[] classValues(@NonNull String member)
member
- The annotation member@NonNull AnnotationClassValue<?>[] annotationClassValues(@NonNull String member)
AnnotationClassValue
instances for the given member. Unlike classValues(String)
this may
include classes that are no the classpath.member
- The annotation memberOptional<AnnotationClassValue<?>> annotationClassValue(@NonNull String member)
AnnotationClassValue
instance for the given member.member
- The annotation memberOptionalInt intValue(@NonNull String member)
member
- The annotation memberOptionalInt
default OptionalInt intValue()
OptionalInt
OptionalLong longValue(@NonNull String member)
member
- The annotation memberOptionalLong
default OptionalLong longValue()
OptionalLong
default Optional<Short> shortValue()
Optional
ofOptionalDouble doubleValue(@NonNull String member)
member
- The annotation memberOptionalDouble
Optional<Float> floatValue(@NonNull String member)
member
- The annotation memberOptionalDouble
default OptionalDouble doubleValue()
OptionalDouble
Optional<String> stringValue(@NonNull String member)
member
- The annotation memberOptionalInt
default Optional<String> stringValue()
OptionalInt
Optional<Boolean> booleanValue(@NonNull String member)
member
- The annotation memberOptional
booleandefault Optional<Boolean> booleanValue()
Optional
boolean@NonNull String[] stringValues(@NonNull String member)
member
- The annotation memberString
@NonNull default String[] stringValues()
String
@NonNull boolean[] booleanValues(@NonNull String member)
member
- The annotation memberboolean
@NonNull default boolean[] booleanValues()
boolean
@NonNull byte[] byteValues(@NonNull String member)
member
- The annotation memberbyte
@NonNull default byte[] byteValues()
byte
@NonNull char[] charValues(@NonNull String member)
member
- The annotation memberchar
@NonNull default char[] charValues()
char
@NonNull int[] intValues(@NonNull String member)
member
- The annotation memberint
@NonNull default int[] intValues()
int
@NonNull double[] doubleValues(@NonNull String member)
member
- The annotation memberdouble
@NonNull default double[] doubleValues()
double
@NonNull long[] longValues(@NonNull String member)
member
- The annotation memberlong
@NonNull default long[] longValues()
long
@NonNull float[] floatValues(@NonNull String member)
member
- The annotation memberfloat
@NonNull default float[] floatValues()
float
@NonNull short[] shortValues(@NonNull String member)
member
- The annotation membershort
@NonNull default short[] shortValues()
short
boolean isPresent(CharSequence member)
member
- The memberdefault boolean isTrue()
boolean isTrue(String member)
member
- The memberdefault boolean isFalse()
boolean isFalse(String member)
member
- The member<T> Optional<Class<? extends T>> classValue(@NonNull String member, @NonNull Class<T> requiredType)
T
- The required typemember
- The annotation memberrequiredType
- The required typeOptional
class@NonNull Map<CharSequence,Object> getValues()