org.jboss.solder.util.collections
Class Sets

java.lang.Object
  extended by org.jboss.solder.util.collections.Sets

public class Sets
extends Object


Method Summary
static
<E> HashSet<E>
newHashSetWithExpectedSize(int expectedSize)
          Creates an empty HashSet instance with enough capacity to hold the specified number of elements without rehashing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newHashSetWithExpectedSize

public static <E> HashSet<E> newHashSetWithExpectedSize(int expectedSize)
Creates an empty HashSet instance with enough capacity to hold the specified number of elements without rehashing.

Parameters:
expectedSize - the expected size
Returns:
a new, empty HashSet with enough capacity to hold expectedSize elements without rehashing
Throws:
IllegalArgumentException - if expectedSize is negative


Copyright © 2008-2011 Seam Framework. All Rights Reserved.