public interface MergeMap<K,V>
extends java.util.Map<K,V>
Map that provides additional merge operations. Due to performance reasons the map does not provide
predictable iteration order, however it is possible to get an ordered list of values by calling
orderedValues().| Modifier and Type | Method and Description |
|---|---|
int |
getHighestRank()
Returns the highest rank of the values in the map.
|
int |
getLowestRank()
Returns the lowest rank of the values in the map.
|
V |
mergeAfter(K key,
V value)
Associates the given value with the given key in this map.
|
void |
mergeAfter(MergeMap<K,V> source,
MergeFunction<K,V> mergeFunction)
Merges both maps, all entries from source map are added to this map.
|
V |
mergeBefore(K key,
V value)
Associates the given value with the given key in this map.
|
void |
mergeBefore(MergeMap<K,V> source,
MergeFunction<K,V> mergeFunction)
Merges both maps, all entries from source map are added to this map.
|
java.util.List<V> |
orderedValues()
Returns an ordered
List of the values contained in this map. |
int getHighestRank()
int getLowestRank()
V mergeBefore(K key, V value)
key - - the keyvalue - - the valuevoid mergeBefore(MergeMap<K,V> source, MergeFunction<K,V> mergeFunction)
source - - the source mapmergeFunction - - the merge functionV mergeAfter(K key, V value)
key - - the keyvalue - - the valuevoid mergeAfter(MergeMap<K,V> source, MergeFunction<K,V> mergeFunction)
source - - the source mapmergeFunction - - the merge functionjava.util.List<V> orderedValues()
List of the values contained in this map.List of the values contained in this mapCopyright © 2018 SAP SE. All Rights Reserved.