Payload - The payload type.public interface ProtectedIterator<Payload> extends Iterator<Payload>
ProtectedIterator is an Iterator that guarantees that every
call to remove() throws an
UnsupportedOperationException and doesn't alter the underlying data
structure.
ProtectedIterator is a marker interface.
| Modifier and Type | Method and Description |
|---|---|
void |
remove()
Always throws an
UnsupportedOperationException. |
forEachRemaining, hasNext, nextvoid remove()
throws UnsupportedOperationException
UnsupportedOperationException.remove in interface Iterator<Payload>UnsupportedOperationException - When trying to remove an element from an
ProtectedIterator.Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.