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