Interface AttributeValueTransformer
- All Superinterfaces:
BiFunction<String,AttributeValue, AttributeValue>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface AttributeValueTransformer
extends BiFunction<String,AttributeValue,AttributeValue>
Alias for BiFunction that transforms
AttributeValue instances.
Returning null is allowed only to remove an item of a multi-valued attribute,
and will result in a Runtime Exception being thrown if the owner
Attribute is not multi-valued
(because an Attribute must always have a value).
-
Method Summary
Modifier and TypeMethodDescriptionapply(String path, AttributeValue attributeValue) Transforms theAttributeValuethat is owned by theAttributeunder the given path.Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
apply
Transforms theAttributeValuethat is owned by theAttributeunder the given path.- Specified by:
applyin interfaceBiFunction<String,AttributeValue, AttributeValue> - Parameters:
path- the path of the attribute that is the passed attribute value's ownerattributeValue- the attribute value to transform- Returns:
- the transformed attribute value
-