Package org.jupnp.util
Klasse Iterators.Synchronized<E>
java.lang.Object
org.jupnp.util.Iterators.Synchronized<E>
- Alle implementierten Schnittstellen:
Iterator<E>
- Umschließende Klasse:
Iterators
Wraps a collection and provides stable iteration with thread-safe removal.
Internally uses the iterator of a CopyOnWriteArrayList, when
remove() is called, delegates to synchronizedRemove(int).
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanhasNext()next()voidremove()protected abstract voidsynchronizedRemove(int index) Must remove the element at the given index from the original collection in a thread-safe fashion.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Iterator
forEachRemaining
-
Konstruktordetails
-
Synchronized
-
-
Methodendetails
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
synchronizedRemove
protected abstract void synchronizedRemove(int index) Must remove the element at the given index from the original collection in a thread-safe fashion.
-