Class ArraySetSupplier<V>

  • All Implemented Interfaces:
    com.google.common.base.Supplier<Set<V>>

    public class ArraySetSupplier<V>
    extends Object
    implements com.google.common.base.Supplier<Set<V>>
    Provides new instances of ArraySet to Google collections.
    Author:
    David Allen
    • Method Detail

      • instance

        public static <V> com.google.common.base.Supplier<Set<V>> instance()
      • get

        public Set<V> get()
        Specified by:
        get in interface com.google.common.base.Supplier<V>
      • trimSetsToSize

        public static <K,​V> void trimSetsToSize​(com.google.common.collect.SetMultimap<K,​V> multimap)
        Helper method which will trim each set in the multimap to its current size.
        Type Parameters:
        K - Key type
        V - Value type
        Parameters:
        multimap - the set multimap using ArraySet as the values