public class GridConcurrentLinkedHashSet<E> extends GridSetWrapper<E>
map, VAL
Constructor and Description |
---|
GridConcurrentLinkedHashSet()
Creates a new, empty set with a default initial capacity,
load factor, and concurrencyLevel.
|
GridConcurrentLinkedHashSet(Collection<E> c)
Creates a new set with the same elements as the given collection.
|
GridConcurrentLinkedHashSet(int initCap)
Creates a new, empty set with the specified initial
capacity, and with default load factor and concurrencyLevel.
|
GridConcurrentLinkedHashSet(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.
|
Iterator<E> |
descendingIterator() |
String |
toString() |
clear, contains, defaultValue, isEmpty, iterator, map, remove, size, toArray, toArray
equals, hashCode, removeAll
addAll, containsAll, retainAll
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, retainAll
public GridConcurrentLinkedHashSet()
public GridConcurrentLinkedHashSet(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 GridConcurrentLinkedHashSet(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 GridConcurrentLinkedHashSet(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. 2.0.0 Release Date : April 30 2017