it.unimi.dsi.fastutil.chars
Class CharIterators.UnmodifiableListIterator
java.lang.Object
it.unimi.dsi.fastutil.chars.AbstractCharIterator
it.unimi.dsi.fastutil.chars.AbstractCharBidirectionalIterator
it.unimi.dsi.fastutil.chars.AbstractCharListIterator
it.unimi.dsi.fastutil.chars.CharIterators.UnmodifiableListIterator
- All Implemented Interfaces:
- BidirectionalIterator<java.lang.Character>, CharBidirectionalIterator, CharIterator, CharListIterator, ObjectBidirectionalIterator<java.lang.Character>, ObjectIterator<java.lang.Character>, java.util.Iterator<java.lang.Character>, java.util.ListIterator<java.lang.Character>
- Enclosing class:
- CharIterators
public static class CharIterators.UnmodifiableListIterator
- extends AbstractCharListIterator
An unmodifiable wrapper class for list iterators.
Method Summary |
boolean |
hasNext()
|
boolean |
hasPrevious()
Returns whether there is a previous element. |
java.lang.Character |
next()
Delegates to the corresponding type-specific method. |
char |
nextChar()
Delegates to the corresponding generic method. |
int |
nextIndex()
|
java.lang.Character |
previous()
Delegates to the corresponding type-specific method. |
char |
previousChar()
Delegates to the corresponding generic method. |
int |
previousIndex()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.ListIterator |
remove |
CharIterators.UnmodifiableListIterator
public CharIterators.UnmodifiableListIterator(CharListIterator i)
hasNext
public boolean hasNext()
hasPrevious
public boolean hasPrevious()
- Description copied from interface:
BidirectionalIterator
- Returns whether there is a previous element.
- Returns:
- whether there is a previous element.
- See Also:
ListIterator.hasPrevious()
nextChar
public char nextChar()
- Description copied from class:
AbstractCharIterator
- Delegates to the corresponding generic method.
- Specified by:
nextChar
in interface CharIterator
- Overrides:
nextChar
in class AbstractCharIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
previousChar
public char previousChar()
- Description copied from class:
AbstractCharBidirectionalIterator
- Delegates to the corresponding generic method.
- Specified by:
previousChar
in interface CharBidirectionalIterator
- Overrides:
previousChar
in class AbstractCharBidirectionalIterator
- Returns:
- the previous element in the iteration.
- See Also:
ListIterator.previous()
nextIndex
public int nextIndex()
previousIndex
public int previousIndex()
next
public java.lang.Character next()
- Description copied from class:
AbstractCharIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next
in interface java.util.Iterator<java.lang.Character>
- Specified by:
next
in interface java.util.ListIterator<java.lang.Character>
- Overrides:
next
in class AbstractCharIterator
previous
public java.lang.Character previous()
- Description copied from class:
AbstractCharBidirectionalIterator
- Delegates to the corresponding type-specific method.
- Specified by:
previous
in interface BidirectionalIterator<java.lang.Character>
- Specified by:
previous
in interface java.util.ListIterator<java.lang.Character>
- Overrides:
previous
in class AbstractCharBidirectionalIterator
- Returns:
- the previous element from the collection.
- See Also:
ListIterator.previous()