E
- the element typepublic class FastCopyHashSet<E> extends MapDelegateSet<E> implements Serializable
Constructor and Description |
---|
FastCopyHashSet()
Constructs a new, empty set; the backing FastCopyHashMap instance has
default initial capacity (16) and load factor (0.75).
|
FastCopyHashSet(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, toString
equals, hashCode, removeAll
addAll, containsAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public FastCopyHashSet()
public FastCopyHashSet(Collection<? extends E> c)
c
- the collection whose elements are to be placed into this set.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.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.IllegalArgumentException
- if the initial capacity is less
than zero.Copyright © 2018 JBoss by Red Hat. All rights reserved.