public class ConversionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <I,R,O> R |
convert(<any> populator,
Supplier<R> supplier,
I source,
O... options) |
static <R,I> List<R> |
convert(Collection<I> collection,
Function<I,R> function)
Converts collection of type I into list of type T using function.
|
static <T,S,I> List<T> |
convert(S source,
Collection<I> collection,
BiFunction<I,S,T> function)
Converts collection of type I into list of type T using function.
|
static <I,R,O> Function<I,R> |
mapper(<any> populator,
Supplier<R> supplier,
O... options)
Mapper which creates a single argument function from ConfigurablePopulator.
|
public static <T,S,I> List<T> convert(S source, Collection<I> collection, BiFunction<I,S,T> function)
source - - second constant argument for mapping functioncollection - - collection of item to convertfunction - - converting functionpublic static <R,I> List<R> convert(Collection<I> collection, Function<I,R> function)
collection - - collection of item to convertfunction - - converting function@SafeVarargs public static <I,R,O> R convert(<any> populator, Supplier<R> supplier, I source, O... options)
@SafeVarargs public static <I,R,O> Function<I,R> mapper(<any> populator, Supplier<R> supplier, O... options)
populator - supplier - options - Copyright © 2017 SAP SE. All Rights Reserved.