Package it.unimi.dsi.fastutil.doubles
Interface DoubleListIterator
- All Superinterfaces:
BidirectionalIterator<Double>
,DoubleBidirectionalIterator
,DoubleIterator
,Iterator<Double>
,ListIterator<Double>
,ObjectBidirectionalIterator<Double>
,ObjectIterator<Double>
,PrimitiveIterator<Double,
,DoubleConsumer> PrimitiveIterator.OfDouble
- All Known Implementing Classes:
AbstractDoubleListIterator
,DoubleIterators.AbstractIndexBasedListIterator
,DoubleIterators.EmptyIterator
,DoubleIterators.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 void
add
(double k) Inserts the specified element into the list (optional operation).default void
Deprecated.Please use the corresponding type-specific method instead.default Double
next()
Deprecated.Please use the corresponding type-specific method instead.default Double
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
(double k) Replaces the last element returned bynext()
orprevious()
with the specified element (optional operation).default void
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.doubles.DoubleBidirectionalIterator
back, previousDouble, skip
Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleIterator
forEachRemaining, forEachRemaining, nextDouble
Methods inherited from interface java.util.ListIterator
hasNext, hasPrevious, nextIndex, previousIndex
Methods inherited from interface java.util.PrimitiveIterator.OfDouble
forEachRemaining
-
Method Details
-
set
default void set(double 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(double 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:
set
in interfaceListIterator<Double>
-
add
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
add
in interfaceListIterator<Double>
-
next
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
next
in interfaceDoubleIterator
- Specified by:
next
in interfaceIterator<Double>
- Specified by:
next
in interfaceListIterator<Double>
- Specified by:
next
in interfacePrimitiveIterator.OfDouble
-
previous
Deprecated.Please use the corresponding type-specific method instead.Returns the previous element from the collection.- Specified by:
previous
in interfaceBidirectionalIterator<Double>
- Specified by:
previous
in interfaceDoubleBidirectionalIterator
- Specified by:
previous
in interfaceListIterator<Double>
- Returns:
- the previous element from the collection.
- See Also:
-