| 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.core.util.ConcurrentHashSet<E>
public class ConcurrentHashSet<E>
| Constructor Summary | |
|---|---|
ConcurrentHashSet()
Constructs a new, empty set; the backing HashMap instance has default initial capacity (16) and load factor (0.75).  | 
|
| Method Summary | ||
|---|---|---|
 boolean | 
add(E o)
Adds the specified element to this set if it is not already present.  | 
|
 boolean | 
addAll(Collection<? extends E> c)
 | 
|
 void | 
clear()
Removes all of the elements from this set.  | 
|
 boolean | 
contains(Object o)
Returns true if this set contains the specified element.  | 
|
 boolean | 
containsAll(Collection<?> c)
 | 
|
 boolean | 
isEmpty()
Returns true if this set contains no elements.  | 
|
 Iterator<E> | 
iterator()
Returns an iterator over the elements in this set.  | 
|
 boolean | 
remove(Object o)
Removes the specified element from this set if it is present.  | 
|
 boolean | 
removeAll(Collection<?> c)
 | 
|
 boolean | 
retainAll(Collection<?> c)
 | 
|
 int | 
size()
Returns the number of elements in this set (its cardinality).  | 
|
 Object[] | 
toArray()
 | 
|
 | 
toArray(T[] a)
 | 
|
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface java.util.Set | 
|---|
equals, hashCode | 
| Constructor Detail | 
|---|
public ConcurrentHashSet()
| Method Detail | 
|---|
public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in interface Set<E>public int size()
size in interface Collection<E>size in interface Set<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface Set<E>public boolean contains(Object o)
contains in interface Collection<E>contains in interface Set<E>o - element whose presence in this set is to be tested.
public boolean add(E o)
add in interface Collection<E>add in interface Set<E>o - element to be added to this set.
public boolean remove(Object o)
remove in interface Collection<E>remove in interface Set<E>o - object to be removed from this set, if present.
public void clear()
clear in interface Collection<E>clear in interface Set<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>addAll in interface Set<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface Set<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>removeAll in interface Set<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>retainAll in interface Set<E>public Object[] toArray()
toArray in interface Collection<E>toArray in interface Set<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>toArray in interface Set<E>
  | 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||