public class MappingService
extends java.lang.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 java.util.Map<java.lang.Object,java.lang.Object> |
mapItems(MappingService.KeyProvider keyProvider,
java.util.Collection<? extends java.lang.Object> items)
Maps all the items in
items to corresponding keys retrieved by the MappingService.KeyProvider
kp, i.e. |
public static java.util.Map<java.lang.Object,java.lang.Object> mapItems(MappingService.KeyProvider keyProvider, java.util.Collection<? extends java.lang.Object> items) throws java.lang.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.KeyProviderjava.lang.IllegalArgumentException - if no key could be retrieved for a specific item in items using the specified
MappingService.KeyProvider kp.MappingService.KeyProviderCopyright © 2018 SAP SE. All Rights Reserved.