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, CharBidirectionalIterator, CharIterator, CharListIterator, Iterator, ListIterator
- Enclosing class:
- CharIterators
- public static class CharIterators.UnmodifiableListIterator
- extends AbstractCharListIterator
An unmodifiable wrapper class for list iterators.
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.
nextChar
public char nextChar()
- Description copied from interface:
CharIterator
- Returns the next element as a primitive type.
- Specified by:
nextChar
in interface CharIterator
- Overrides:
nextChar
in class AbstractCharIterator
previousChar
public char previousChar()
- Description copied from interface:
CharBidirectionalIterator
- Returns the previous element as a primitive type.
- Specified by:
previousChar
in interface CharBidirectionalIterator
- Overrides:
previousChar
in class AbstractCharBidirectionalIterator
nextIndex
public int nextIndex()
previousIndex
public int previousIndex()
next
public Object next()
- Description copied from class:
AbstractCharIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next
in interface ListIterator
- Overrides:
next
in class AbstractCharIterator
previous
public Object previous()
- Description copied from interface:
BidirectionalIterator
- Returns the previous element from the collection.
- Specified by:
previous
in interface ListIterator
- Overrides:
previous
in class AbstractCharBidirectionalIterator