Package it.unimi.dsi.fastutil.chars
Class CharIterators.UnmodifiableListIterator
java.lang.Object
it.unimi.dsi.fastutil.chars.CharIterators.UnmodifiableListIterator
- All Implemented Interfaces:
BidirectionalIterator<Character>,CharBidirectionalIterator,CharIterator,CharListIterator,ObjectBidirectionalIterator<Character>,ObjectIterator<Character>,Iterator<Character>,ListIterator<Character>
- Enclosing class:
- CharIterators
public static class CharIterators.UnmodifiableListIterator extends Object implements CharListIterator
An unmodifiable wrapper class for list iterators.
-
Constructor Summary
Constructors Constructor Description UnmodifiableListIterator(CharListIterator i) -
Method Summary
Modifier and Type Method Description booleanhasNext()booleanhasPrevious()Returns whether there is a previous element.charnextChar()Returns the next element as a primitive type.intnextIndex()charpreviousChar()Returns the previous element as a primitive type.intpreviousIndex()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.chars.CharIterator
forEachRemaining, forEachRemaining
-
Constructor Details
-
Method Details
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious()Description copied from interface:BidirectionalIteratorReturns whether there is a previous element.- Specified by:
hasPreviousin interfaceBidirectionalIterator<Character>- Specified by:
hasPreviousin interfaceListIterator<Character>- Returns:
- whether there is a previous element.
- See Also:
ListIterator.hasPrevious()
-
nextChar
public char nextChar()Description copied from interface:CharIteratorReturns the next element as a primitive type.- Specified by:
nextCharin interfaceCharIterator- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
-
previousChar
public char previousChar()Description copied from interface:CharBidirectionalIteratorReturns the previous element as a primitive type.- Specified by:
previousCharin interfaceCharBidirectionalIterator- Returns:
- the previous element in the iteration.
- See Also:
ListIterator.previous()
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<Character>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<Character>
-