protected static class AbstractCharList.PListIterator extends Object implements CharListIterator
Modifier | Constructor and Description |
---|---|
protected |
AbstractCharList.PListIterator(AbstractCharList list,
int start) |
Modifier and Type | Method and Description |
---|---|
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) |
protected AbstractCharList.PListIterator(AbstractCharList list, int start)
public boolean hasNext()
public char nextChar()
CharIterator
nextChar
in interface CharIterator
public int nextIndex()
nextIndex
in interface ListIterator<Character>
public boolean hasPrevious()
hasPrevious
in interface ListIterator<Character>
public char previousChar()
CharListIterator
previousChar
in interface CharListIterator
public Character previous()
previous
in interface ListIterator<Character>
public int previousIndex()
previousIndex
in interface ListIterator<Character>
public void remove()
public void add(char value)
CharListIterator
add
in interface CharListIterator
value
- the value to addpublic void add(Character obj)
add
in interface ListIterator<Character>
public void set(char value)
CharListIterator
set
in interface CharListIterator
value
- the value to setpublic void set(Character obj)
set
in interface ListIterator<Character>
public boolean isModifiable()
PrimitiveIterator
isModifiable
in interface PrimitiveIterator<Character>
true
if the modification methods of the iterator can be usedpublic boolean isResettable()
PrimitiveIterator
isResettable
in interface PrimitiveIterator<Character>
true
if the object can be resetpublic void reset()
PrimitiveIterator
reset
in interface PrimitiveIterator<Character>
Copyright © 2005-2012 Joda.org. All Rights Reserved.