Class Multimaps2
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.util.Multimaps2
-
public class Multimaps2 extends java.lang.ObjectProvides static creating aLinkedHashListMultimap.- See Also:
Multimaps
-
-
Constructor Summary
Constructors Constructor Description Multimaps2()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K,V>
com.google.common.collect.ListMultimap<K,V>newLinkedHashListMultimap()Creates a new, emptyListMultimapwith the default initial capacities that uses a linked map internally.static <K,V>
com.google.common.collect.ListMultimap<K,V>newLinkedHashListMultimap(int expectedKeys, int expectedValuesPerKey)Constructs an emptyListMultimapwith enough capacity to hold the specified numbers of keys and values without resizing.static <K,V>
com.google.common.collect.ListMultimap<K,V>newLinkedHashListMultimap(com.google.common.collect.Multimap<K,V> multimap)Constructs anArrayListMultimapwith the same mappings as the specified multimap.
-
-
-
Method Detail
-
newLinkedHashListMultimap
public static <K,V> com.google.common.collect.ListMultimap<K,V> newLinkedHashListMultimap()
Creates a new, emptyListMultimapwith the default initial capacities that uses a linked map internally.
-
newLinkedHashListMultimap
public static <K,V> com.google.common.collect.ListMultimap<K,V> newLinkedHashListMultimap(int expectedKeys, int expectedValuesPerKey)Constructs an emptyListMultimapwith enough capacity to hold the specified numbers of keys and values without resizing. It uses a linked map internally.- Parameters:
expectedKeys- the expected number of distinct keysexpectedValuesPerKey- the expected average number of values per key- Throws:
java.lang.IllegalArgumentException- ifexpectedKeysorexpectedValuesPerKeyis negative
-
newLinkedHashListMultimap
public static <K,V> com.google.common.collect.ListMultimap<K,V> newLinkedHashListMultimap(com.google.common.collect.Multimap<K,V> multimap)
Constructs anArrayListMultimapwith the same mappings as the specified multimap. It uses a linked map internally..- Parameters:
multimap- the multimap whose contents are copied to this multimap
-
-