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