Class MultiMaps

java.lang.Object
org.faktorips.util.MultiMaps

public class MultiMaps extends Object
MultiMap utilities
Since:
23.6.0
  • Method Details

    • unmodifiableMultimap

      public static <K, V> MultiMap<K,V> unmodifiableMultimap(MultiMap<K,V> map)
      Returns an unmodifiable view of the specified multi map. Query operations on the returned multi map "read through" to the specified multi map. Attempts to modify the returned multi map, result in an UnsupportedOperationException.
      Type Parameters:
      K - the class of the map keys
      V - the class of the map values
      Parameters:
      map - the multi map for which an unmodifiable view is to be returned.
      Returns:
      an unmodifiable view of the specified multi map.