org.apache.commons.collections.primitives.decorators
Class UnmodifiableIntListIterator

java.lang.Object
  extended by org.apache.commons.collections.primitives.decorators.ProxyIntIterator
      extended by org.apache.commons.collections.primitives.decorators.ProxyIntListIterator
          extended by 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

Field Summary
private  IntListIterator proxied
           
 
Constructor Summary
UnmodifiableIntListIterator(IntListIterator iterator)
           
 
Method Summary
 void add(int value)
          Inserts the specified element into my underlying collection (optional operation).
protected  IntListIterator getListIterator()
           
 void remove()
          Removes from my underlying collection the last element returned by IntListIterator.next() or IntListIterator.previous() (optional operation).
 void set(int value)
          Replaces in my underlying collection the last element returned by IntListIterator.next() or IntListIterator.previous() with the specified value (optional operation).
static IntListIterator wrap(IntListIterator iterator)
           
 
Methods inherited from class org.apache.commons.collections.primitives.decorators.ProxyIntListIterator
getIterator, hasPrevious, nextIndex, previous, previousIndex
 
Methods inherited from class org.apache.commons.collections.primitives.decorators.ProxyIntIterator
hasNext, next
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.collections.primitives.IntListIterator
hasNext, next
 

Field Detail

proxied

private IntListIterator proxied
Constructor Detail

UnmodifiableIntListIterator

UnmodifiableIntListIterator(IntListIterator iterator)
Method Detail

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