public class DefaultMergeMap<K,T extends AbstractAsConfiguration,R extends AbstractAsConfiguration> extends java.util.HashMap<K,AsConfigurationHolder<T,R>> implements MergeMap<K,AsConfigurationHolder<T,R>>
MergeMap.| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultMergeMap.RankComparator |
| Modifier and Type | Field and Description |
|---|---|
protected static DefaultMergeMap.RankComparator |
RANK_COMPARATOR |
| Constructor and Description |
|---|
DefaultMergeMap() |
DefaultMergeMap(java.util.Comparator<AsConfigurationHolder<T,R>> comparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
equals(java.lang.Object o) |
int |
getHighestRank()
Returns the highest rank of the values in the map.
|
int |
getLowestRank()
Returns the lowest rank of the values in the map.
|
int |
hashCode() |
AsConfigurationHolder<T,R> |
mergeAfter(K key,
AsConfigurationHolder<T,R> value)
Associates the given value with the given key in this map.
|
void |
mergeAfter(MergeMap<K,AsConfigurationHolder<T,R>> source,
MergeFunction<K,AsConfigurationHolder<T,R>> mergeFunction)
Merges both maps, all entries from source map are added to this map.
|
AsConfigurationHolder<T,R> |
mergeBefore(K key,
AsConfigurationHolder<T,R> value)
Associates the given value with the given key in this map.
|
void |
mergeBefore(MergeMap<K,AsConfigurationHolder<T,R>> source,
MergeFunction<K,AsConfigurationHolder<T,R>> mergeFunction)
Merges both maps, all entries from source map are added to this map.
|
java.util.List<AsConfigurationHolder<T,R>> |
orderedValues()
Returns an ordered
List of the values contained in this map. |
AsConfigurationHolder<T,R> |
put(K key,
AsConfigurationHolder<T,R> value) |
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesprotected static final DefaultMergeMap.RankComparator RANK_COMPARATOR
public DefaultMergeMap()
public DefaultMergeMap(java.util.Comparator<AsConfigurationHolder<T,R>> comparator)
public void clear()
clear in interface java.util.Map<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>clear in class java.util.HashMap<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>public AsConfigurationHolder<T,R> put(K key, AsConfigurationHolder<T,R> value)
put in interface java.util.Map<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>put in class java.util.HashMap<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>public int getHighestRank()
MergeMapgetHighestRank in interface MergeMap<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>public int getLowestRank()
MergeMapgetLowestRank in interface MergeMap<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>public AsConfigurationHolder<T,R> mergeBefore(K key, AsConfigurationHolder<T,R> value)
MergeMapmergeBefore in interface MergeMap<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>key - - the keyvalue - - the valuepublic void mergeBefore(MergeMap<K,AsConfigurationHolder<T,R>> source, MergeFunction<K,AsConfigurationHolder<T,R>> mergeFunction)
MergeMapmergeBefore in interface MergeMap<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>source - - the source mapmergeFunction - - the merge functionpublic AsConfigurationHolder<T,R> mergeAfter(K key, AsConfigurationHolder<T,R> value)
MergeMapmergeAfter in interface MergeMap<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>key - - the keyvalue - - the valuepublic void mergeAfter(MergeMap<K,AsConfigurationHolder<T,R>> source, MergeFunction<K,AsConfigurationHolder<T,R>> mergeFunction)
MergeMapmergeAfter in interface MergeMap<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>source - - the source mapmergeFunction - - the merge functionpublic java.util.List<AsConfigurationHolder<T,R>> orderedValues()
MergeMapList of the values contained in this map.orderedValues in interface MergeMap<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>List of the values contained in this mappublic boolean equals(java.lang.Object o)
equals in interface java.util.Map<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>equals in class java.util.AbstractMap<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>public int hashCode()
hashCode in interface java.util.Map<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>hashCode in class java.util.AbstractMap<K,AsConfigurationHolder<T extends AbstractAsConfiguration,R extends AbstractAsConfiguration>>Copyright © 2018 SAP SE. All Rights Reserved.