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 CharListIterator
i
-
Constructor Summary
Constructors Constructor Description UnmodifiableListIterator(CharListIterator i)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
boolean
hasPrevious()
Returns whether there is a previous element.Character
next()
Delegates to the corresponding type-specific method.char
nextChar()
Delegates to the corresponding generic method.int
nextIndex()
Character
previous()
Delegates to the corresponding type-specific method.char
previousChar()
Delegates to the corresponding generic method.int
previousIndex()
-
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: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 interfaceCharIterator
- Overrides:
nextChar
in classAbstractCharIterator
- 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 interfaceCharBidirectionalIterator
- Overrides:
previousChar
in 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:AbstractCharIterator
Delegates to the corresponding type-specific method.- Specified by:
next
in interfaceIterator<Character>
- Specified by:
next
in interfaceListIterator<Character>
- Overrides:
next
in classAbstractCharIterator
-
previous
public Character previous()
Description copied from class:AbstractCharBidirectionalIterator
Delegates to the corresponding type-specific method.- Specified by:
previous
in interfaceBidirectionalIterator<Character>
- Specified by:
previous
in interfaceListIterator<Character>
- Overrides:
previous
in classAbstractCharBidirectionalIterator
- Returns:
- the previous element from the collection.
- See Also:
ListIterator.previous()
-
-