S - The source type.T - The target type.public class Mapper<S,T> extends Object
| Modifier and Type | Method and Description |
|---|---|
T |
map(S source,
T target)
Maps the properties of a source instance to a target instance and returns the target instance.
|
static <S,T> Mapper<S,T> |
mapping(Class<S> sourceClass,
Class<T> targetClass)
Returns a mapper that can map properties from a source type to a target type.
|
static <S,T> Mapper<S,T> |
mapping(Getters<S> getters,
Class<T> targetClass)
Returns a mapper that can map properties from a source type to a target type using given
Getters. |
static <S,T> Mapper<S,T> |
mapping(Getters<S> getters,
Setters<T> setters)
|
public static <S,T> Mapper<S,T> mapping(Class<S> sourceClass, Class<T> targetClass)
S - The source type.T - The target type.public static <S,T> Mapper<S,T> mapping(Getters<S> getters, Class<T> targetClass)
Getters.S - The source type.T - The target type.public static <S,T> Mapper<S,T> mapping(Getters<S> getters, Setters<T> setters)
Getters
and Setters.S - The source type.T - The target type.Copyright © 2026 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.