org.jboss.weld.util.collections
Class ArraySetSupplier<V>

java.lang.Object
  extended by org.jboss.weld.util.collections.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 Summary
 Set<V> get()
           
static
<V> com.google.common.base.Supplier<Set<V>>
instance()
           
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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<Set<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


Copyright © 2013 Seam Framework. All Rights Reserved.