Package org.faktorips.util
Class SortedMultiMap<K,V>
java.lang.Object
org.faktorips.util.MultiMap<K,V>
org.faktorips.util.SortedMultiMap<K,V>
- All Implemented Interfaces:
Serializable
This implementation of
MultiMap uses a sorted map and set.
Note that this implementation is not synchronized. If multiple threads access a tree set concurrently, and at least one of the threads modifies the set, it must be synchronized externally.
- Since:
- 23.6
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class org.faktorips.util.MultiMap
MultiMap.ArrayListFactory<V>, MultiMap.CollectionFactory<V>, MultiMap.HashSetFactory<V>, MultiMap.LinkedHashSetFactory<V> -
Constructor Summary
ConstructorsConstructorDescriptionCreates a multi map with natural ordering for the keys and the values.SortedMultiMap(Comparator<? super K> keyComparator, Comparator<? super V> valueComparator) Creates a multi map with the givenComparators. -
Method Summary
Methods inherited from class org.faktorips.util.MultiMap
asMap, clear, count, createWithLinkedSetAsValues, createWithListsAsValues, createWithSetsAsValues, get, isEmpty, keySet, merge, put, put, putReplace, remove, remove, values
-
Constructor Details
-
SortedMultiMap
public SortedMultiMap()Creates a multi map with natural ordering for the keys and the values. -
SortedMultiMap
Creates a multi map with the givenComparators.- Parameters:
keyComparator- this comparator is used to sort the keysvalueComparator- this comparator is used to sort the values
-