org.joda.primitives.list.impl
Class AbstractIntList.PListIterator

java.lang.Object
  extended by org.joda.primitives.list.impl.AbstractIntList.PListIterator
All Implemented Interfaces:
Iterator<Integer>, ListIterator<Integer>, IntIterator, PrimitiveIterator<Integer>, IntListIterator, PrimitiveListIterator<Integer>
Enclosing class:
AbstractIntList

protected static class AbstractIntList.PListIterator
extends Object
implements IntListIterator

List iterator.


Constructor Summary
protected AbstractIntList.PListIterator(AbstractIntList list, int start)
           
 
Method Summary
 void add(int value)
          Adds the specified value to the list underlying the iterator at the current iteration index (optional operation).
 void add(Integer obj)
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 boolean isModifiable()
          Checks whether the iterator can currently be modified.
 boolean isResettable()
          Checks whether the iterator can be reset.
 Integer next()
           
 int nextIndex()
           
 int nextInt()
          Gets the next value from the iterator
 Integer previous()
           
 int previousIndex()
           
 int previousInt()
          Gets the previous value from the iterator.
 void remove()
           
 void reset()
          Resets the iterator back to its initial state (optional operation).
 void set(int value)
          Sets the last retrieved value from the iterator (optional operation).
 void set(Integer obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIntList.PListIterator

protected AbstractIntList.PListIterator(AbstractIntList list,
                                        int start)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Integer>
Specified by:
hasNext in interface ListIterator<Integer>

nextInt

public int nextInt()
Description copied from interface: IntIterator
Gets the next value from the iterator

Specified by:
nextInt in interface IntIterator
Returns:
the next available value

next

public Integer next()
Specified by:
next in interface Iterator<Integer>
Specified by:
next in interface ListIterator<Integer>

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface ListIterator<Integer>

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface ListIterator<Integer>

previousInt

public int previousInt()
Description copied from interface: IntListIterator
Gets the previous value from the iterator.

Specified by:
previousInt in interface IntListIterator
Returns:
the previous available value

previous

public Integer previous()
Specified by:
previous in interface ListIterator<Integer>

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface ListIterator<Integer>

remove

public void remove()
Specified by:
remove in interface Iterator<Integer>
Specified by:
remove in interface ListIterator<Integer>

add

public void add(int value)
Description copied from interface: IntListIterator
Adds the specified value to the list underlying the iterator at the current iteration index (optional operation).

Specified by:
add in interface IntListIterator
Parameters:
value - the value to add

add

public void add(Integer obj)
Specified by:
add in interface ListIterator<Integer>

set

public void set(int value)
Description copied from interface: IntListIterator
Sets the last retrieved value from the iterator (optional operation).

Specified by:
set in interface IntListIterator
Parameters:
value - the value to set

set

public void set(Integer obj)
Specified by:
set in interface ListIterator<Integer>

isModifiable

public boolean isModifiable()
Description copied from interface: PrimitiveIterator
Checks whether the iterator can currently be modified.

Specified by:
isModifiable in interface PrimitiveIterator<Integer>
Returns:
true if the modification methods of the iterator can be used

isResettable

public boolean isResettable()
Description copied from interface: PrimitiveIterator
Checks whether the iterator can be reset.

Specified by:
isResettable in interface PrimitiveIterator<Integer>
Returns:
true if the object can be reset

reset

public void reset()
Description copied from interface: PrimitiveIterator
Resets the iterator back to its initial state (optional operation).

Specified by:
reset in interface PrimitiveIterator<Integer>


Copyright © 2005-2010 Joda.org. All Rights Reserved.