T - the type of the attribute to convert.S - the type of the output to produce.@FunctionalInterface
public interface AttributeValueToRepresentationConverter<T,S>
AttributeDescriptorModel,
leveraging a transformation function.
This interface can be useful to transform lists or other types of collections.| Modifier and Type | Method and Description |
|---|---|
S |
convert(AttributeDescriptorModel attribute,
T item,
java.util.function.Function<java.lang.Object,java.lang.Object> transformationFunction)
Converts an item of type
T, described by the provided AttributeDescriptorModel,
into a new object of type S by applying the provided transformation function. |
S convert(AttributeDescriptorModel attribute, T item, java.util.function.Function<java.lang.Object,java.lang.Object> transformationFunction)
T, described by the provided AttributeDescriptorModel,
into a new object of type S by applying the provided transformation function.
This function can be useful to transform lists or other types of collections, where the transformation function has to be applied
individually to each element of the collection.attribute - A model describing the attributeitem - The item to converttransformationFunction - Function that will be used to transform the provided item.S, converted from T by leveraging the provided transformationFunction.Copyright © 2018 SAP SE. All Rights Reserved.