public final class UnmodifiableByteListIterator extends ProxyByteListIterator
| Modifier and Type | Field and Description |
|---|---|
private ByteListIterator |
proxied |
| Constructor and Description |
|---|
UnmodifiableByteListIterator(ByteListIterator iterator) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte value)
Inserts the specified element into my underlying collection
(optional operation).
|
protected ByteListIterator |
getListIterator() |
void |
remove()
Removes from my underlying collection the last
element returned by
ByteListIterator.next() or ByteListIterator.previous()
(optional operation). |
void |
set(byte value)
Replaces in my underlying collection the last
element returned by
ByteListIterator.next() or ByteListIterator.previous()
with the specified value (optional operation). |
static ByteListIterator |
wrap(ByteListIterator iterator) |
getIterator, hasPrevious, nextIndex, previous, previousIndexhasNext, nextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNext, nextprivate ByteListIterator proxied
UnmodifiableByteListIterator(ByteListIterator iterator)
public void remove()
ByteListIteratorByteListIterator.next() or ByteListIterator.previous()
(optional operation).public void add(byte value)
ByteListIteratorByteListIterator.next(), if any,
and immediately after the next element that would have been
returned by ByteListIterator.previous(), if any.
The new element is inserted immediately before the implied
cursor. A subsequent call to ByteListIterator.previous() will return
the added element, a subsequent call to ByteListIterator.next() will
be unaffected. This call increases by one the value that
would be returned by a call to ByteListIterator.nextIndex() or
ByteListIterator.previousIndex().value - the value to be insertedpublic void set(byte value)
ByteListIteratorByteListIterator.next() or ByteListIterator.previous()
with the specified value (optional operation).value - the value to replace the last returned element withprotected ByteListIterator getListIterator()
getListIterator in class ProxyByteListIteratorpublic static final ByteListIterator wrap(ByteListIterator iterator)
Copyright (c) 2002-2003 - Apache Software Foundation