@FunctionalInterface public interface ConverterProvider
getConverter(Class)
,
getConverter(TypeLiteral)
,
getConverter(Type)
Modifier and Type | Method and Description |
---|---|
default <T> Converter<? extends T> |
getConverter(Class<T> type)
|
Converter<?> |
getConverter(Type type)
|
default <T> Converter<? extends T> |
getConverter(TypeLiteral<T> type)
|
default <T> Converter<? extends T> getConverter(Class<T> type)
T
- the conversion typetype
- a Class
describing the conversion type; must
not be null
null
Converter
capable of
converting Value
s
into objects of the proper typeNullPointerException
- if type
is null
IllegalArgumentException
- if no Converter
is
available for the supplied type
getConverter(Type)
Converter
instances over time given the same type
.null
.default <T> Converter<? extends T> getConverter(TypeLiteral<T> type)
T
- the conversion typetype
- a TypeLiteral
describing the conversion type;
must not be null
null
Converter
capable of
converting Value
s
into objects of the proper typeNullPointerException
- if type
is null
IllegalArgumentException
- if no Converter
is
available for the supplied type
getConverter(Type)
Converter
instances over time given the same type
.null
.Converter<?> getConverter(Type type)
Converter
capable of converting Value
s into objects
of the supplied type
.
Implementations of this method must not call either getConverter(Class)
or getConverter(TypeLiteral)
or
undefined behavior may result.
type
- a Type
describing the conversion type; must
not be null
null
Converter
capable of
converting Value
s
into objects of the proper typeNullPointerException
- if type
is null
IllegalArgumentException
- if no Converter
is
available for the supplied type
Converter
instances over time given the same type
.null
.Copyright © 2019–2020, microBean™. All rights reserved.