E - the element typepublic class FastCopyHashSet<E> extends MapDelegateSet<E> implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
The serialVersionUID
|
| Constructor and Description |
|---|
FastCopyHashSet()
Constructs a new, empty set; the backing FastCopyHashMap instance has
default initial capacity (16) and load factor (0.75).
|
FastCopyHashSet(java.util.Collection<? extends E> c)
Constructs a new set containing the elements in the specified
collection.
|
FastCopyHashSet(int initialCapacity)
Constructs a new, empty set; the backing FastCopyHashMap instance has
the specified initial capacity and default load factor, which is
0.75.
|
FastCopyHashSet(int initialCapacity,
float loadFactor)
Constructs a new, empty set; the backing FastCopyHashMap instance has
the specified initial capacity and the specified load factor.
|
add, clear, contains, isEmpty, iterator, remove, size, toStringaddAll, containsAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitprivate static final long serialVersionUID
public FastCopyHashSet()
public FastCopyHashSet(java.util.Collection<? extends E> c)
c - the collection whose elements are to be placed into this set.java.lang.NullPointerException - if the specified collection is null.public FastCopyHashSet(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacity. The implementation
performs internal sizing to accommodate this many elements.loadFactor - the load factor threshold, used to control resizing.
Resizing may be performed when the average number of elements per
bin exceeds this threshold.java.lang.IllegalArgumentException - if the initial capacity is less
than zero, or if the load factor is nonpositive.public FastCopyHashSet(int initialCapacity)
initialCapacity - the initial capacity of the hash table.java.lang.IllegalArgumentException - if the initial capacity is less
than zero.