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