org.apache.commons.collections.primitives.decorators
Class UnmodifiableIntListIterator
java.lang.Object
org.apache.commons.collections.primitives.decorators.ProxyIntIterator
org.apache.commons.collections.primitives.decorators.ProxyIntListIterator
org.apache.commons.collections.primitives.decorators.UnmodifiableIntListIterator
- All Implemented Interfaces:
- IntIterator, IntListIterator
public final class UnmodifiableIntListIterator
- extends ProxyIntListIterator
- Since:
- Commons Primitives 1.0
- Version:
- $Revision: 1.3 $ $Date: 2003/10/16 20:49:38 $
- Author:
- Rodney Waldhoff
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
proxied
private IntListIterator proxied
UnmodifiableIntListIterator
UnmodifiableIntListIterator(IntListIterator iterator)
remove
public void remove()
- Description copied from interface:
IntListIterator
- Removes from my underlying collection the last
element returned by
IntListIterator.next() or IntListIterator.previous()
(optional operation).
add
public void add(int value)
- Description copied from interface:
IntListIterator
- Inserts the specified element into my underlying collection
(optional operation).
The element is inserted immediately before the next element
that would have been returned by
IntListIterator.next(), if any,
and immediately after the next element that would have been
returned by IntListIterator.previous(), if any.
The new element is inserted immediately before the implied
cursor. A subsequent call to IntListIterator.previous() will return
the added element, a subsequent call to IntListIterator.next() will
be unaffected. This call increases by one the value that
would be returned by a call to IntListIterator.nextIndex() or
IntListIterator.previousIndex().
- Parameters:
value - the value to be inserted
set
public void set(int value)
- Description copied from interface:
IntListIterator
- Replaces in my underlying collection the last
element returned by
IntListIterator.next() or IntListIterator.previous()
with the specified value (optional operation).
- Parameters:
value - the value to replace the last returned element with
getListIterator
protected IntListIterator getListIterator()
- Specified by:
getListIterator in class ProxyIntListIterator
wrap
public static final IntListIterator wrap(IntListIterator iterator)
Copyright (c) 2002-2003 - Apache Software Foundation