E
- is the type of elements in the collections.public class ConcurrentMultiList<E> extends Object implements Collection<E>
This collection is not thread-safe.
This collection is read-only.
Modifier and Type | Class and Description |
---|---|
static class |
ConcurrentMultiList.MultiIterator<E>
Iterator on multicollection.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(value : E)
This function is not supported, see
#addCollection(Collection) . |
boolean |
addAll(collection : Collection<? extends E>)
This function is not supported, see
#removeCollection(Collection) . |
boolean |
addCollection(collection : ConcurrentLinkedDeque<? extends E>)
Add a collection inside this multicollection.
|
void |
clear() |
boolean |
contains(obj : Object) |
boolean |
containsAll(collection : Collection<?>)
This function is not supported, see
#removeCollection(Collection) . |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(obj : Object)
This function is not supported, see
#removeCollection(Collection) . |
boolean |
removeAll(collection : Collection<?>)
This function is not supported, see
#removeCollection(Collection) . |
boolean |
removeCollection(collection : ConcurrentLinkedDeque<? extends E>)
Remove a collection from this multicollection.
|
boolean |
retainAll(collection : Collection<?>)
This function is not supported, see
#removeCollection(Collection) . |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(array : T[]) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public def
addCollection(collection : ConcurrentLinkedDeque<? extends E>) : boolean
ConcurrentMultiList
collection
- the collection to add.true
if the multi-collection has changed,
otherwise false
.public def
removeCollection(collection : ConcurrentLinkedDeque<? extends E>) : boolean
ConcurrentMultiList
collection
- the collection to remove.true
if the multi-collection has changed,
otherwise false
.public def
clear() : void
clear
in interface Collection<E>
public def
add(value : E) : boolean
ConcurrentMultiList
#addCollection(Collection)
.add
in interface Collection<E>
public def
contains(obj : Object) : boolean
contains
in interface Collection<E>
public def
isEmpty() : boolean
isEmpty
in interface Collection<E>
public def
containsAll(collection : Collection<?>) : boolean
ConcurrentMultiList
#removeCollection(Collection)
.containsAll
in interface Collection<E>
collection
- a collectionpublic def
addAll(collection : Collection<? extends E>) : boolean
ConcurrentMultiList
#removeCollection(Collection)
.addAll
in interface Collection<E>
collection
- a collectionpublic def
removeAll(collection : Collection<?>) : boolean
ConcurrentMultiList
#removeCollection(Collection)
.removeAll
in interface Collection<E>
collection
- a collectionpublic def
remove(obj : Object) : boolean
ConcurrentMultiList
#removeCollection(Collection)
.remove
in interface Collection<E>
obj
- an objectpublic def
retainAll(collection : Collection<?>) : boolean
ConcurrentMultiList
#removeCollection(Collection)
.retainAll
in interface Collection<E>
collection
- - a collectionpublic def
size() : int
size
in interface Collection<E>
public def
toArray() : Object[]
toArray
in interface Collection<E>
publicdef
toArray(array : T[]) : T[]with
<T>
toArray
in interface Collection<E>
Copyright © 2021 the original authors or authors.