@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 nullnull Converter capable of
converting Values
into objects of the proper typeNullPointerException - if type is nullIllegalArgumentException - if no Converter is
available for the supplied typegetConverter(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 nullnull Converter capable of
converting Values
into objects of the proper typeNullPointerException - if type is nullIllegalArgumentException - if no Converter is
available for the supplied typegetConverter(Type)Converter instances over time given the same type.null.Converter<?> getConverter(Type type)
Converter capable of converting Values 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 nullnull Converter capable of
converting Values
into objects of the proper typeNullPointerException - if type is nullIllegalArgumentException - if no Converter is
available for the supplied typeConverter instances over time given the same type.null.Copyright © 2019–2020, microBean™. All rights reserved.