Class MultimapBuilder.HashSetSupplier<V>

  • All Implemented Interfaces:
    Supplier<java.util.Set<V>>, java.io.Serializable, java.util.function.Supplier<java.util.Set<V>>
    Enclosing class:
    MultimapBuilder<K0,​V0>

    private static final class MultimapBuilder.HashSetSupplier<V>
    extends java.lang.Object
    implements Supplier<java.util.Set<V>>, java.io.Serializable
    • Constructor Summary

      Constructors 
      Constructor Description
      HashSetSupplier​(int expectedValuesPerKey)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<V> get()
      Retrieves an instance of the appropriate type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • expectedValuesPerKey

        private final int expectedValuesPerKey
    • Constructor Detail

      • HashSetSupplier

        HashSetSupplier​(int expectedValuesPerKey)
    • Method Detail

      • get

        public java.util.Set<V> get()
        Description copied from interface: Supplier
        Retrieves an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation.
        Specified by:
        get in interface Supplier<V>
        Specified by:
        get in interface java.util.function.Supplier<V>
        Returns:
        an instance of the appropriate type