public interface AnnotationValueResolver extends ValueResolver<CharSequence>
Modifier and Type | Method and Description |
---|---|
default Optional<Boolean> |
booleanValue()
The Boolean value of the given member.
|
Optional<Boolean> |
booleanValue(String member)
The boolean value of 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 <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.
|
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 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 integer value of the given member.
|
OptionalLong |
longValue(String member)
The long value of 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 double value of the given member.
|
String[] |
stringValues(String member)
The string value of 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 valuedefault Optional<Class<?>> classValue()
Optional
classOptional<Class<?>> classValue(@Nonnull String member)
member
- The annotation memberOptional
class@Nonnull default Class<?>[] classValues()
Optional
class@Nonnull Class<?>[] classValues(@Nonnull String member)
member
- The annotation memberOptional
classOptionalInt 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
OptionalDouble doubleValue(@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 memberOptionalInt
@Nonnull default String[] stringValues()
OptionalInt
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()