T - The type whose properties are to be mapped.@Deprecated @FunctionalInterface public interface Mapping<T>
Map.| Modifier and Type | Interface and Description |
|---|---|
static class |
Mapping.Builder<T>
Deprecated.
Further development is discontinued due to relatively high complexity with little benefit and this
package/module may be removed in a future release.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Mapping.Builder<T> |
add(String name,
Function<T,Object> getter)
Deprecated.
Creates a new
Mapping.Builder and adds a link between name and getter method, which represents a property
of the associated type. |
TargetOperation<Map<String,Object>> |
map(T origin)
Deprecated.
Results in a
TargetOperation for a given origin instance of the associated type,
which can map its properties into a Map. |
default Map<String,Object> |
toMap(T origin)
Deprecated.
Convenience method that maps the properties of a given origin instance of the associated type to a new,
empty
Map and returns it. |
static <T> Mapping.Builder<T> add(String name, Function<T,Object> getter)
Mapping.Builder and adds a link between name and getter method, which represents a property
of the associated type.T - The type whose properties are to be mapped.TargetOperation<Map<String,Object>> map(T origin)
TargetOperation for a given origin instance of the associated type,
which can map its properties into a Map.Copyright © 2023 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.