Class CharIterators.UnmodifiableListIterator
- java.lang.Object
-
- org.codelibs.jhighlight.fastutil.chars.AbstractCharIterator
-
- org.codelibs.jhighlight.fastutil.chars.AbstractCharBidirectionalIterator
-
- org.codelibs.jhighlight.fastutil.chars.AbstractCharListIterator
-
- org.codelibs.jhighlight.fastutil.chars.CharIterators.UnmodifiableListIterator
-
- All Implemented Interfaces:
Iterator<Character>,ListIterator<Character>,BidirectionalIterator<Character>,CharBidirectionalIterator,CharIterator,CharListIterator,ObjectBidirectionalIterator<Character>,ObjectIterator<Character>
- Enclosing class:
- CharIterators
public static class CharIterators.UnmodifiableListIterator extends AbstractCharListIterator
An unmodifiable wrapper class for list iterators.
-
-
Field Summary
Fields Modifier and Type Field Description protected CharListIteratori
-
Constructor Summary
Constructors Constructor Description UnmodifiableListIterator(CharListIterator i)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()booleanhasPrevious()Returns whether there is a previous element.Characternext()Delegates to the corresponding type-specific method.charnextChar()Delegates to the corresponding generic method.intnextIndex()Characterprevious()Delegates to the corresponding type-specific method.charpreviousChar()Delegates to the corresponding generic method.intpreviousIndex()-
Methods inherited from class org.codelibs.jhighlight.fastutil.chars.AbstractCharListIterator
add, add, set, set
-
Methods inherited from class org.codelibs.jhighlight.fastutil.chars.AbstractCharBidirectionalIterator
back
-
Methods inherited from class org.codelibs.jhighlight.fastutil.chars.AbstractCharIterator
remove, skip
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codelibs.jhighlight.fastutil.chars.CharBidirectionalIterator
back
-
Methods inherited from interface org.codelibs.jhighlight.fastutil.chars.CharIterator
skip
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Methods inherited from interface java.util.ListIterator
remove
-
Methods inherited from interface org.codelibs.jhighlight.fastutil.objects.ObjectIterator
skip
-
-
-
-
Field Detail
-
i
protected final CharListIterator i
-
-
Constructor Detail
-
UnmodifiableListIterator
public UnmodifiableListIterator(CharListIterator i)
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
hasPrevious
public boolean hasPrevious()
Description copied from interface:BidirectionalIteratorReturns 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:AbstractCharIteratorDelegates to the corresponding generic method.- Specified by:
nextCharin interfaceCharIterator- Overrides:
nextCharin classAbstractCharIterator- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
-
previousChar
public char previousChar()
Description copied from class:AbstractCharBidirectionalIteratorDelegates to the corresponding generic method.- Specified by:
previousCharin interfaceCharBidirectionalIterator- Overrides:
previousCharin classAbstractCharBidirectionalIterator- Returns:
- the previous element in the iteration.
- See Also:
ListIterator.previous()
-
nextIndex
public int nextIndex()
-
previousIndex
public int previousIndex()
-
next
public Character next()
Description copied from class:AbstractCharIteratorDelegates to the corresponding type-specific method.- Specified by:
nextin interfaceIterator<Character>- Specified by:
nextin interfaceListIterator<Character>- Overrides:
nextin classAbstractCharIterator
-
previous
public Character previous()
Description copied from class:AbstractCharBidirectionalIteratorDelegates to the corresponding type-specific method.- Specified by:
previousin interfaceBidirectionalIterator<Character>- Specified by:
previousin interfaceListIterator<Character>- Overrides:
previousin classAbstractCharBidirectionalIterator- Returns:
- the previous element from the collection.
- See Also:
ListIterator.previous()
-
-