Interface CharListIterator
- All Superinterfaces:
BidirectionalIterator<Character>,CharBidirectionalIterator,CharIterator,Iterator<Character>,ListIterator<Character>,ObjectBidirectionalIterator<Character>,ObjectIterator<Character>,PrimitiveIterator<Character, CharConsumer>
- All Known Implementing Classes:
AbstractCharListIterator,CharIterators.AbstractIndexBasedListIterator,CharIterators.EmptyIterator,CharIterators.UnmodifiableListIterator
A type-specific bidirectional iterator that is also a
ListIterator.
This interface merges the methods provided by a ListIterator and a type-specific
BidirectionalIterator. Moreover, it provides type-specific versions
of add() and set().
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Method Summary
Modifier and TypeMethodDescriptiondefault voidadd(char k) Inserts the specified element into the list (optional operation).default voidDeprecated.Please use the corresponding type-specific method instead.default Characternext()Deprecated.Please use the corresponding type-specific method instead.default Characterprevious()Deprecated.Please use the corresponding type-specific method instead.default voidremove()Removes from the underlying collection the last element returned by this iterator (optional operation).default voidset(char k) Replaces the last element returned bynext()orprevious()with the specified element (optional operation).default voidDeprecated.Please use the corresponding type-specific method instead.Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPreviousMethods inherited from interface it.unimi.dsi.fastutil.chars.CharBidirectionalIterator
back, previousChar, skipMethods inherited from interface it.unimi.dsi.fastutil.chars.CharIterator
forEachRemaining, forEachRemaining, forEachRemaining, nextCharMethods inherited from interface java.util.ListIterator
hasNext, hasPrevious, nextIndex, previousIndex
-
Method Details
-
set
default void set(char k) Replaces the last element returned bynext()orprevious()with the specified element (optional operation).- Parameters:
k- the element used to replace the last element returned.This default implementation just throws an
UnsupportedOperationException.- See Also:
-
add
default void add(char k) Inserts the specified element into the list (optional operation).This default implementation just throws an
UnsupportedOperationException.- Parameters:
k- the element to insert.- See Also:
-
remove
default void remove()Removes from the underlying collection the last element returned by this iterator (optional operation).This default implementation just throws an
UnsupportedOperationException. -
set
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
setin interfaceListIterator<Character>
-
add
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
addin interfaceListIterator<Character>
-
next
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
nextin interfaceCharIterator- Specified by:
nextin interfaceIterator<Character>- Specified by:
nextin interfaceListIterator<Character>
-
previous
Deprecated.Please use the corresponding type-specific method instead.Returns the previous element from the collection.- Specified by:
previousin interfaceBidirectionalIterator<Character>- Specified by:
previousin interfaceCharBidirectionalIterator- Specified by:
previousin interfaceListIterator<Character>- Returns:
- the previous element from the collection.
- See Also:
-