org.jboss.weld.util.collections
Class ArraySetSupplier<V>
java.lang.Object
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
|
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 |
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 typeV
- Value type- Parameters:
multimap
- the set multimap using ArraySet as the values
Copyright © 2013 Seam Framework. All Rights Reserved.