public class MappingService extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MappingService.KeyProvider
A
KeyProvider provides a key, to be used for the mapping of a specific item. |
| Constructor and Description |
|---|
MappingService() |
| Modifier and Type | Method and Description |
|---|---|
static Map<Object,Object> |
mapItems(MappingService.KeyProvider keyProvider,
Collection<? extends Object> items)
Maps all the items in
items to corresponding keys retrieved by the MappingService.KeyProvider
kp, i.e. |
public static Map<Object,Object> mapItems(MappingService.KeyProvider keyProvider, Collection<? extends Object> items) throws IllegalArgumentException
items to corresponding keys retrieved by the MappingService.KeyProvider
kp, i.e. each entry will look like this (item being an element in items):
<kp.getKey(item), item>keyProvider - the MappingService.KeyProvider used for mapping itemsitems - the items to be mappeditems and a key set corresponding to
the keys retrieved by the specified MappingService.KeyProviderIllegalArgumentException - if no key could be retrieved for a specific item in items using the specified
MappingService.KeyProvider kp.MappingService.KeyProviderCopyright © 2017 SAP SE. All Rights Reserved.