Class ChainConverterProvider
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.internal.converter.ChainConverterProvider
- All Implemented Interfaces:
AttributeConverterProvider
A
AttributeConverterProvider
that allows multiple providers to be chained in a specified order
to act as a single composite provider. When searching for an attribute converter for a type,
the providers will be called in forward/ascending order, attempting to find a converter from the
first provider, then the second, and so on, until a match is found or the operation fails.-
Method Summary
Modifier and TypeMethodDescription<T> AttributeConverter
<T> converterFor
(EnhancedType<T> enhancedType) Finds aAttributeConverter
for converting an object with a type specified by aEnhancedType
to aAttributeValue
and back.static ChainConverterProvider
create
(List<AttributeConverterProvider> providers) Construct a new instance ofChainConverterProvider
.static ChainConverterProvider
create
(AttributeConverterProvider... providers) Construct a new instance ofChainConverterProvider
.boolean
int
hashCode()
-
Method Details
-
create
Construct a new instance ofChainConverterProvider
.- Parameters:
providers
- A list ofAttributeConverterProvider
to chain together.- Returns:
- A constructed
ChainConverterProvider
object.
-
create
Construct a new instance ofChainConverterProvider
.- Parameters:
providers
- A list ofAttributeConverterProvider
to chain together.- Returns:
- A constructed
ChainConverterProvider
object.
-
chainedProviders
-
converterFor
Description copied from interface:AttributeConverterProvider
Finds aAttributeConverter
for converting an object with a type specified by aEnhancedType
to aAttributeValue
and back.- Specified by:
converterFor
in interfaceAttributeConverterProvider
- Parameters:
enhancedType
- The type of the object to be converted- Returns:
AttributeConverter
for converting the given type.
-
equals
-
hashCode
-