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

java.lang.Object
  extended by org.joda.primitives.list.impl.AbstractCharList.PListIterator
All Implemented Interfaces:
Iterator<Character>, ListIterator<Character>, CharIterator, PrimitiveIterator<Character>, CharListIterator, PrimitiveListIterator<Character>
Enclosing class:
AbstractCharList

protected static class AbstractCharList.PListIterator
extends Object
implements CharListIterator

List iterator.


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

Constructor Detail

AbstractCharList.PListIterator

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

hasNext

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

nextChar

public char nextChar()
Description copied from interface: CharIterator
Gets the next value from the iterator

Specified by:
nextChar in interface CharIterator
Returns:
the next available value

next

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

nextIndex

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

hasPrevious

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

previousChar

public char previousChar()
Description copied from interface: CharListIterator
Gets the previous value from the iterator.

Specified by:
previousChar in interface CharListIterator
Returns:
the previous available value

previous

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

previousIndex

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

remove

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

add

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

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

add

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

set

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

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

set

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

isModifiable

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

Specified by:
isModifiable in interface PrimitiveIterator<Character>
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<Character>
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<Character>


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