Package it.unimi.dsi.fastutil.chars
Class CharIterators.UnmodifiableBidirectionalIterator
- java.lang.Object
-
- it.unimi.dsi.fastutil.chars.CharIterators.UnmodifiableBidirectionalIterator
-
- All Implemented Interfaces:
BidirectionalIterator<Character>,CharBidirectionalIterator,CharIterator,ObjectBidirectionalIterator<Character>,ObjectIterator<Character>,Iterator<Character>
- Enclosing class:
- CharIterators
public static class CharIterators.UnmodifiableBidirectionalIterator extends Object implements CharBidirectionalIterator
An unmodifiable wrapper class for bidirectional iterators.
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableBidirectionalIterator(CharBidirectionalIterator 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.charpreviousChar()Returns the previous element as a primitive type.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharBidirectionalIterator
back, previous, skip
-
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharIterator
forEachRemaining, forEachRemaining, next
-
-
-
-
Constructor Detail
-
UnmodifiableBidirectionalIterator
public UnmodifiableBidirectionalIterator(CharBidirectionalIterator i)
-
-
Method Detail
-
hasPrevious
public boolean hasPrevious()
Description copied from interface:BidirectionalIteratorReturns whether there is a previous element.- Specified by:
hasPreviousin interfaceBidirectionalIterator<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()
-
-