public abstract static class Iterators.Synchronized<E> extends Object implements Iterator<E>
Internally uses the iterator of a CopyOnWriteArrayList, when
remove() is called, delegates to synchronizedRemove(int).
| Constructor and Description |
|---|
Synchronized(Collection<E> collection) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
E |
next() |
void |
remove() |
protected abstract void |
synchronizedRemove(int index)
Must remove the element at the given index from the original collection in a
thread-safe fashion.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic Synchronized(Collection<E> collection)
Copyright © 2023 jUPnP.org. All rights reserved.