|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConcurrentCollection<E>
Adds concurrent add operations to the collection interface. Signatures and
javadoc taken from CopyOnWriteArrayList
.
Method Summary | |
---|---|
int |
addAllAbsent(java.util.Collection<? extends E> c)
Appends all of the elements in the specified collection that are not already contained in this list, to the end of this list, in the order that they are returned by the specified collection's iterator. |
boolean |
addIfAbsent(E e)
Append the element if not present. |
Methods inherited from interface java.util.Collection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
---|
int addAllAbsent(java.util.Collection<? extends E> c)
c
- collection containing elements to be added to this list
java.lang.NullPointerException
- if the specified collection is nullboolean addIfAbsent(E e)
e
- element to be added to this list, if absent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |