com.atlassian.jira.util.collect
Class MultiMaps

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

public class MultiMaps
extends Object

Static factory methods for creating and manipulating multi-maps.


Constructor Summary
MultiMaps()
           
 
Method Summary
static
<K,V,C extends Collection<V>>
MultiMap<K,V,C>
create(Map<K,C> basedOn, Supplier<C> collectionFactory)
           
static
<K,V,C extends Collection<V>>
MultiMap<K,V,C>
create(Supplier<C> collectionFactory)
           
static
<K,V> MultiMap<K,V,List<V>>
createListMultiMap()
           
static
<K,V> MultiMap<K,V,Set<V>>
createSetMultiMap()
           
static
<K,V> MultiMap<K,V,List<V>>
unmodifiableListMultiMap(MultiMap<K,V,List<V>> multiMap)
           
static
<K,V> MultiMap<K,V,Set<V>>
unmodifiableSetMultiMap(MultiMap<K,V,Set<V>> multiMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiMaps

public MultiMaps()
Method Detail

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)


Copyright © 2002-2012 Atlassian. All Rights Reserved.