Package | Description |
---|---|
org.microbean.settings | |
org.microbean.settings.converter |
Provides classes and interfaces that help with settings
conversion.
|
Modifier and Type | Method and Description |
---|---|
<T> Converter<? extends T> |
Converters.getConverter(Class<T> type)
|
default <T> Converter<? extends T> |
ConverterProvider.getConverter(Class<T> type)
|
Converter<?> |
Converters.getConverter(Type type)
|
Converter<?> |
ConverterProvider.getConverter(Type type)
|
<T> Converter<? extends T> |
Converters.getConverter(TypeLiteral<T> type)
|
default <T> Converter<? extends T> |
ConverterProvider.getConverter(TypeLiteral<T> type)
|
<T> Converter<? extends T> |
Converters.putConverter(Class<T> type,
Converter<? extends T> converter)
|
<T> Converter<? extends T> |
Converters.putConverter(TypeLiteral<T> type,
Converter<? extends T> converter)
|
<T> Converter<? extends T> |
Converters.removeConverter(Class<T> key)
Uninstalls and returns any
Converter stored under a key
equal to the supplied key . |
<T> Converter<? extends T> |
Converters.removeConverter(TypeLiteral<T> key)
Uninstalls and returns any
Converter stored under a key
equal to the supplied key . |
Modifier and Type | Method and Description |
---|---|
<T> T |
Settings.get(String name,
Converter<? extends T> converter)
Returns a suitable value for a setting
named by the supplied
name as converted by the supplied Converter . |
<T> T |
Settings.get(String name,
Converter<? extends T> converter,
BiFunction<? super String,? super Set<? extends Annotation>,? extends String> defaultValueFunction)
Returns a suitable value for a setting
named by the supplied
name as converted by the supplied Converter and with default value semantics implemented by the
optional supplied defaultValueFunction . |
<T> T |
Settings.get(String name,
Set<Annotation> qualifiers,
Converter<? extends T> converter)
Returns a suitable value for a setting
named by the supplied
name and qualified
with the supplied qualifiers , as converted by the supplied Converter . |
<T> T |
Settings.get(String name,
Set<Annotation> qualifiers,
Converter<? extends T> converter,
BiFunction<? super String,? super Set<? extends Annotation>,? extends String> defaultValueFunction)
Returns a suitable value for a setting
named by the supplied
name and qualified
with the supplied qualifiers , as converted by the supplied Converter and with default value semantics implemented by the
optional supplied defaultValueFunction . |
<T> T |
Settings.get(String name,
Set<Annotation> qualifiers,
Converter<? extends T> converter,
String defaultValue)
Returns a suitable value for a setting
named by the supplied
name and qualified
with the supplied qualifiers , as converted by the supplied Converter and with default value semantics implemented by the
optional supplied defaultValueFunction . |
<T> Converter<? extends T> |
Converters.putConverter(Class<T> type,
Converter<? extends T> converter)
|
<T> Converter<? extends T> |
Converters.putConverter(TypeLiteral<T> type,
Converter<? extends T> converter)
|
Constructor and Description |
---|
Converters(Collection<? extends Converter<?>> converters)
Creates a new
Converters instance. |
Copyright © 2019–2020, microBean™. All rights reserved.