Interface ConfigurationValueMappingFunction<T>
- Type Parameters:
T
- the target type
- All Known Subinterfaces:
ConfigurationValueMapper<T>
- All Known Implementing Classes:
ConfigurationValueMapper.Default
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ConfigurationValueMappingFunction<T>
Function which maps String values from
Configuration
s to a certain type.-
Method Summary
Modifier and Type Method Description T
map(Configuration config, String key, String value)
Maps the given value of aConfiguration
to the target type.
-
Method Details
-
map
Maps the given value of aConfiguration
to the target type.- Parameters:
config
- source configurationkey
- the assigned keyvalue
- the value to map- Returns:
- the mapped value
- Throws:
ConfigurationExceptionValueMappingFailed
- if the mapping failed
-