Class SortedMultiMap<K,V>

java.lang.Object
org.faktorips.util.MultiMap<K,V>
org.faktorips.util.SortedMultiMap<K,V>
All Implemented Interfaces:
Serializable

public class SortedMultiMap<K,V> extends MultiMap<K,V>
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:
  • Constructor Details

    • SortedMultiMap

      public SortedMultiMap()
      Creates a multi map with natural ordering for the keys and the values.
    • SortedMultiMap

      public SortedMultiMap(Comparator<? super K> keyComparator, Comparator<? super V> valueComparator)
      Creates a multi map with the given Comparators.
      Parameters:
      keyComparator - this comparator is used to sort the keys
      valueComparator - this comparator is used to sort the values