public class GridConcurrentHashSet<E> extends GridSetWrapper<E>
map, VAL| Constructor and Description |
|---|
GridConcurrentHashSet()
Creates a new, empty set with a default initial capacity,
load factor, and concurrencyLevel.
|
GridConcurrentHashSet(Collection<E> c)
Creates a new set with the same elements as the given collection.
|
GridConcurrentHashSet(int initCap)
Creates a new, empty set with the specified initial
capacity, and with default load factor and concurrencyLevel.
|
GridConcurrentHashSet(int initCap,
float loadFactor,
int conLevel)
Creates a new, empty set with the specified initial
capacity, load factor, and concurrency level.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
Note that unlike regular add operation on a set, this method will only
add the passed in element if it's not already present in set.
|
E |
addx(E e)
Note that unlike regular add operation on a set, this method will only
add the passed in element if it's not already present in set.
|
String |
toString() |
clear, contains, defaultValue, isEmpty, iterator, map, remove, size, toArray, toArrayequals, hashCode, removeAlladdAll, containsAll, retainAllclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, retainAllpublic GridConcurrentHashSet()
public GridConcurrentHashSet(int initCap)
initCap - The initial capacity. The implementation
performs internal sizing to accommodate this many elements.IllegalArgumentException - if the initial capacity of
elements is negative.public GridConcurrentHashSet(int initCap,
float loadFactor,
int conLevel)
initCap - 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.conLevel - The estimated number of concurrently
updating threads. The implementation performs internal sizing
to try to accommodate this many threads.IllegalArgumentException - if the initial capacity is
negative or the load factor or concurrency level are
non-positive.public GridConcurrentHashSet(Collection<E> c)
c - Collection to add.public boolean add(E e)
add in interface Collection<E>add in interface Set<E>add in class GridSetWrapper<E>e - Element to add.True if element was added.@Nullable public E addx(E e)
e - Element to add.null if set didn't have this value.public String toString()
toString in class GridSetWrapper<E>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015