K
- parent typepublic interface ValueResolver<K extends java.lang.CharSequence>
TypeConverter
Modifier and Type | Method and Description |
---|---|
default <T> java.util.Optional<T> |
get(K name,
Argument<T> requiredType)
Resolve the given property for the given name.
|
<T> java.util.Optional<T> |
get(K name,
ArgumentConversionContext<T> conversionContext)
Resolve the given property for the given name.
|
default <T> java.util.Optional<T> |
get(K name,
java.lang.Class<T> requiredType)
Resolve the given property for the given name.
|
default <T> T |
get(K name,
java.lang.Class<T> requiredType,
T defaultValue)
Resolve the given property for the given name.
|
<T> java.util.Optional<T> get(K name, ArgumentConversionContext<T> conversionContext)
T
- The concrete typename
- The nameconversionContext
- The conversion contextdefault <T> java.util.Optional<T> get(K name, java.lang.Class<T> requiredType)
T
- The concrete typename
- The namerequiredType
- The required typedefault <T> java.util.Optional<T> get(K name, Argument<T> requiredType)
T
- The concrete typename
- The namerequiredType
- The required typedefault <T> T get(K name, java.lang.Class<T> requiredType, T defaultValue)
T
- The concrete typename
- The namerequiredType
- The required typedefaultValue
- The default value