Class MultiMaps

java.lang.Object
com.atlassian.jira.util.collect.MultiMaps

public class MultiMaps extends Object
Static factory methods for creating and manipulating multi-maps.
  • Constructor Details

    • MultiMaps

      public MultiMaps()
  • Method Details

    • create

      public static <K, V, C extends Collection<V>> MultiMap<K,V,C> create(Map<K,C> basedOn, Supplier<C> collectionFactory)
    • create

      public static <K, V, C extends Collection<V>> MultiMap<K,V,C> create(Supplier<C> collectionFactory)
    • createListMultiMap

      public static <K, V> MultiMap<K,V,List<V>> createListMultiMap()
    • createSetMultiMap

      public static <K, V> MultiMap<K,V,Set<V>> createSetMultiMap()
    • unmodifiableListMultiMap

      public static <K, V> MultiMap<K,V,List<V>> unmodifiableListMultiMap(MultiMap<K,V,List<V>> multiMap)
    • unmodifiableSetMultiMap

      public static <K, V> MultiMap<K,V,Set<V>> unmodifiableSetMultiMap(MultiMap<K,V,Set<V>> multiMap)