K0
- The upper bound on the key type of the generated multimap.public abstract static class MultimapBuilder.MultimapBuilderWithKeys<K0> extends Object
MultimapBuilder
in which the key-value collection map
implementation has been specified, but the value collection implementation has not.Modifier and Type | Method and Description |
---|---|
MultimapBuilder.ListMultimapBuilder<K0,Object> |
arrayListValues()
Uses an
ArrayList to store value collections. |
MultimapBuilder.ListMultimapBuilder<K0,Object> |
arrayListValues(int expectedValuesPerKey)
Uses an
ArrayList to store value collections, initialized to expect the specified
number of values per key. |
<V0 extends Enum<V0>> |
enumSetValues(Class<V0> valueClass)
Uses an
EnumSet to store value collections. |
MultimapBuilder.SetMultimapBuilder<K0,Object> |
hashSetValues()
Uses a
HashSet to store value collections. |
MultimapBuilder.SetMultimapBuilder<K0,Object> |
hashSetValues(int expectedValuesPerKey)
Uses a
HashSet to store value collections, initialized to expect the specified number
of values per key. |
MultimapBuilder.SetMultimapBuilder<K0,Object> |
linkedHashSetValues()
Uses a
LinkedHashSet to store value collections. |
MultimapBuilder.SetMultimapBuilder<K0,Object> |
linkedHashSetValues(int expectedValuesPerKey)
Uses a
LinkedHashSet to store value collections, initialized to expect the specified
number of values per key. |
MultimapBuilder.ListMultimapBuilder<K0,Object> |
linkedListValues()
Uses a
LinkedList to store value collections. |
MultimapBuilder.SortedSetMultimapBuilder<K0,Comparable> |
treeSetValues()
Uses a naturally-ordered
TreeSet to store value collections. |
<V0> MultimapBuilder.SortedSetMultimapBuilder<K0,V0> |
treeSetValues(Comparator<V0> comparator)
Uses a
TreeSet ordered by the specified comparator to store value collections. |
public MultimapBuilder.ListMultimapBuilder<K0,Object> arrayListValues()
ArrayList
to store value collections.public MultimapBuilder.ListMultimapBuilder<K0,Object> arrayListValues(int expectedValuesPerKey)
ArrayList
to store value collections, initialized to expect the specified
number of values per key.IllegalArgumentException
- if expectedValuesPerKey < 0
public MultimapBuilder.ListMultimapBuilder<K0,Object> linkedListValues()
LinkedList
to store value collections.public MultimapBuilder.SetMultimapBuilder<K0,Object> hashSetValues()
HashSet
to store value collections.public MultimapBuilder.SetMultimapBuilder<K0,Object> hashSetValues(int expectedValuesPerKey)
HashSet
to store value collections, initialized to expect the specified number
of values per key.IllegalArgumentException
- if expectedValuesPerKey < 0
public MultimapBuilder.SetMultimapBuilder<K0,Object> linkedHashSetValues()
LinkedHashSet
to store value collections.public MultimapBuilder.SetMultimapBuilder<K0,Object> linkedHashSetValues(int expectedValuesPerKey)
LinkedHashSet
to store value collections, initialized to expect the specified
number of values per key.IllegalArgumentException
- if expectedValuesPerKey < 0
public MultimapBuilder.SortedSetMultimapBuilder<K0,Comparable> treeSetValues()
TreeSet
to store value collections.public <V0> MultimapBuilder.SortedSetMultimapBuilder<K0,V0> treeSetValues(Comparator<V0> comparator)
TreeSet
ordered by the specified comparator to store value collections.
Multimaps generated by the resulting builder will not be serializable if
comparator
is not serializable.
public <V0 extends Enum<V0>> MultimapBuilder.SetMultimapBuilder<K0,V0> enumSetValues(Class<V0> valueClass)
EnumSet
to store value collections.Copyright © 2010–2017. All rights reserved.