public class Mappers extends Object
Mapper interface with Sets and
Lists. This helper class replaces the now deprecated
Converters class.| Constructor and Description |
|---|
Mappers() |
| Modifier and Type | Method and Description |
|---|---|
static <I,O> List<O> |
mappedList(List<I> inputList,
Mapper<I,O> mapper)
Maps all objects in the given list and returns a list that contains the
mapped objects in the same order as the input objects in the original
list.
|
static <I,O> Set<O> |
mappedSet(Set<I> inputSet,
Mapper<I,O> mapper)
Maps all objects in the given list and returns a list that contains the
mapped objects.
|
public static <I,O> List<O> mappedList(List<I> inputList, Mapper<I,O> mapper)
I - The type of the input objectsO - The type of the output objectsinputList - The list with the input objectmapper - The mapper to usepublic static <I,O> Set<O> mappedSet(Set<I> inputSet, Mapper<I,O> mapper)
I - The type of the input objectsO - The type of the output objectsinputSet - The set with the input objectmapper - The mapper to useCopyright © 2026. All rights reserved.