| Package | Description |
|---|---|
| org.springframework.core.convert.converter |
SPI to implement Converters for the type conversion system.
|
| org.springframework.core.convert.support |
Default implementation of the type conversion system.
|
| org.springframework.core.serializer.support |
Support classes for Spring's serializer abstraction.
|
| Modifier and Type | Method and Description |
|---|---|
default <U> Converter<S,U> |
Converter.andThen(Converter<? super T,? extends U> after)
|
<T extends R> |
ConverterFactory.getConverter(Class<T> targetType)
Get the converter to convert from S to target type T, where T is also an instance of R.
|
| Modifier and Type | Method and Description |
|---|---|
<S,T> void |
ConverterRegistry.addConverter(Class<S> sourceType,
Class<T> targetType,
Converter<? super S,? extends T> converter)
Add a plain converter to this registry.
|
void |
ConverterRegistry.addConverter(Converter<?,?> converter)
Add a plain converter to this registry.
|
default <U> Converter<S,U> |
Converter.andThen(Converter<? super T,? extends U> after)
|
| Constructor and Description |
|---|
ConvertingComparator(Comparator<T> comparator,
Converter<S,T> converter)
Create a new
ConvertingComparator instance. |
ConvertingComparator(Converter<S,T> converter)
Create a new
ConvertingComparator instance. |
| Modifier and Type | Method and Description |
|---|---|
<S,T> void |
GenericConversionService.addConverter(Class<S> sourceType,
Class<T> targetType,
Converter<? super S,? extends T> converter) |
void |
GenericConversionService.addConverter(Converter<?,?> converter) |
| Modifier and Type | Class and Description |
|---|---|
class |
DeserializingConverter
A
Converter that delegates to a
Deserializer
to convert data in a byte array to an object. |
class |
SerializingConverter
A
Converter that delegates to a
Serializer
to convert an object to a byte array. |