Class MultimapBuilder.MultimapBuilderWithKeys<K0>

  • Type Parameters:
    K0 - The upper bound on the key type of the generated multimap.
    Enclosing class:
    MultimapBuilder<K0,​V0>

    public abstract static class MultimapBuilder.MultimapBuilderWithKeys<K0>
    extends 
    An intermediate stage in a MultimapBuilder in which the key-value collection map implementation has been specified, but the value collection implementation has not.
    Since:
    16.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      > arrayListValues()
      Uses an to store value collections.
      > arrayListValues​(int expectedValuesPerKey)
      Uses an to store value collections, initialized to expect the specified number of values per key.
      <V0 extends <V0>>
      MultimapBuilder.SetMultimapBuilder<K0,​V0>
      <V0> valueClass)
      Uses an to store value collections.
      > hashSetValues()
      Uses a hash-based Set to store value collections.
      > hashSetValues​(int expectedValuesPerKey)
      Uses a hash-based Set to store value collections, initialized to expect the specified number of values per key.
      > linkedHashSetValues()
      Uses an insertion-ordered hash-based Set to store value collections.
      > linkedHashSetValues​(int expectedValuesPerKey)
      Uses an insertion-ordered hash-based Set to store value collections, initialized to expect the specified number of values per key.
      > linkedListValues()
      Uses a to store value collections.
      > treeSetValues()
      Uses a naturally-ordered to store value collections.
      <V0> MultimapBuilder.SortedSetMultimapBuilder<K0,​V0> <V0> comparator)
      Uses a ordered by the specified comparator to store value collections.
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • Method Detail

      • arrayListValues

        public > arrayListValues()
        Uses an to store value collections.
      • arrayListValues

        public > arrayListValues​(int expectedValuesPerKey)
        Uses an to store value collections, initialized to expect the specified number of values per key.
        Throws:
        - if expectedValuesPerKey < 0
      • linkedListValues

        public > linkedListValues()
        Uses a to store value collections.
      • hashSetValues

        public > hashSetValues()
        Uses a hash-based Set to store value collections.
      • hashSetValues

        public > hashSetValues​(int expectedValuesPerKey)
        Uses a hash-based Set to store value collections, initialized to expect the specified number of values per key.
        Throws:
        - if expectedValuesPerKey < 0
      • linkedHashSetValues

        public > linkedHashSetValues()
        Uses an insertion-ordered hash-based Set to store value collections.
      • linkedHashSetValues

        public > linkedHashSetValues​(int expectedValuesPerKey)
        Uses an insertion-ordered hash-based Set to store value collections, initialized to expect the specified number of values per key.
        Throws:
        - if expectedValuesPerKey < 0
      • treeSetValues

        public > treeSetValues()
        Uses a naturally-ordered to store value collections.
      • treeSetValues

        public <V0> <V0> comparator)
        Uses a ordered by the specified comparator to store value collections.

        Multimaps generated by the resulting builder will not be serializable if comparator is not serializable.

      • enumSetValues

        public <V0 extends <V0>> <V0> valueClass)
        Uses an to store value collections.