Interface ConfigurationValueMapperProvider
- All Superinterfaces:
Iterable<ConfigurationValueMapper<?>>
- All Known Implementing Classes:
ConfigurationValueMapperProvider.Default
public interface ConfigurationValueMapperProvider extends Iterable<ConfigurationValueMapper<?>>
Provider for
ConfigurationValueMapper
s which are used in a Configuration
.-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ConfigurationValueMapperProvider.Builder
Builder for aConfigurationValueMapperProvider
.static class
ConfigurationValueMapperProvider.Default
-
Method Summary
Modifier and Type Method Description static ConfigurationValueMapperProvider.Builder
Builder()
Pseudo-constructor method to create a new emptyConfigurationValueMapperProvider.Builder
for aConfigurationValueMapperProvider
.static ConfigurationValueMapperProvider.Builder
Default()
<T> ConfigurationValueMapper<T>
get(Class<T> type)
Gets the value mapper for the specified type, ornull
if none was found.static ConfigurationValueMapperProvider
New(XGettingMap<Class<?>,ConfigurationValueMapper<?>> table)
Pseudo-constructor method to create a newConfigurationValueMapperProvider
.<T> Optional<ConfigurationValueMapper<T>>
opt(Class<T> type)
Returns an optional value mapper for the specified type.
-
Method Details
-
get
Gets the value mapper for the specified type, ornull
if none was found.- Type Parameters:
T
- the target type- Parameters:
type
- the target's type class- Returns:
- a
ConfigurationValueMapper
ornull
if none was found
-
opt
Returns an optional value mapper for the specified type.- Type Parameters:
T
- the target type- Parameters:
type
- the target's type class- Returns:
- an
Optional
with the value mapper or an empty one if none was found
-
Builder
Pseudo-constructor method to create a new emptyConfigurationValueMapperProvider.Builder
for aConfigurationValueMapperProvider
.- Returns:
- a new builder
-
Default
Pseudo-constructor method to create a newConfigurationValueMapperProvider.Builder
for aConfigurationValueMapperProvider
, with all value mappers which are provided by default for the following types:- Returns:
- a new builder
-
New
static ConfigurationValueMapperProvider New(XGettingMap<Class<?>,ConfigurationValueMapper<?>> table)Pseudo-constructor method to create a newConfigurationValueMapperProvider
.- Parameters:
table
- the providedConfigurationValueMapper
s- Returns:
- a new
ConfigurationValueMapperProvider
-