Package it.unimi.dsi.fastutil.chars
Interface CharListIterator
-
- All Superinterfaces:
BidirectionalIterator<java.lang.Character>
,CharBidirectionalIterator
,CharIterator
,java.util.Iterator<java.lang.Character>
,java.util.ListIterator<java.lang.Character>
,ObjectBidirectionalIterator<java.lang.Character>
,ObjectIterator<java.lang.Character>
,java.util.PrimitiveIterator<java.lang.Character,CharConsumer>
- All Known Implementing Classes:
AbstractCharListIterator
,CharIterators.AbstractIndexBasedListIterator
,CharIterators.EmptyIterator
,CharIterators.UnmodifiableListIterator
public interface CharListIterator extends CharBidirectionalIterator, java.util.ListIterator<java.lang.Character>
A type-specific bidirectional iterator that is also aListIterator
.This interface merges the methods provided by a
ListIterator
and a type-specificBidirectionalIterator
. Moreover, it provides type-specific versions ofadd()
andset()
.- See Also:
ListIterator
,BidirectionalIterator
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
add(char k)
Inserts the specified element into the list (optional operation).default void
add(java.lang.Character k)
Deprecated.Please use the corresponding type-specific method instead.default java.lang.Character
next()
Deprecated.Please use the corresponding type-specific method instead.default java.lang.Character
previous()
Deprecated.Please use the corresponding type-specific method instead.default void
remove()
Removes from the underlying collection the last element returned by this iterator (optional operation).default void
set(char k)
Replaces the last element returned bynext()
orprevious()
with the specified element (optional operation).default void
set(java.lang.Character k)
Deprecated.Please use the corresponding type-specific method instead.-
Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPrevious
-
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharBidirectionalIterator
back, previousChar, skip
-
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharIterator
forEachRemaining, forEachRemaining, forEachRemaining, nextChar
-
-
-
-
Method Detail
-
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:
ListIterator.set(Object)
-
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:
ListIterator.add(Object)
-
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
.- Specified by:
remove
in interfacejava.util.Iterator<java.lang.Character>
- Specified by:
remove
in interfacejava.util.ListIterator<java.lang.Character>
- See Also:
ListIterator.remove()
-
set
@Deprecated default void set(java.lang.Character k)
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
set
in interfacejava.util.ListIterator<java.lang.Character>
-
add
@Deprecated default void add(java.lang.Character k)
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
add
in interfacejava.util.ListIterator<java.lang.Character>
-
next
@Deprecated default java.lang.Character next()
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
next
in interfaceCharIterator
- Specified by:
next
in interfacejava.util.Iterator<java.lang.Character>
- Specified by:
next
in interfacejava.util.ListIterator<java.lang.Character>
-
previous
@Deprecated default java.lang.Character previous()
Deprecated.Please use the corresponding type-specific method instead.Returns the previous element from the collection.- Specified by:
previous
in interfaceBidirectionalIterator<java.lang.Character>
- Specified by:
previous
in interfaceCharBidirectionalIterator
- Specified by:
previous
in interfacejava.util.ListIterator<java.lang.Character>
- Returns:
- the previous element from the collection.
- See Also:
ListIterator.previous()
-
-