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.EmptyIterator,DoubleIterators.UnmodifiableListIterator
public interface DoubleListIterator extends DoubleBidirectionalIterator, ListIterator<Double>
A type-specific bidirectional iterator that is also aListIterator.This interface merges the methods provided by a
ListIteratorand a type-specificBidirectionalIterator. Moreover, it provides type-specific versions ofadd()andset().- See Also:
ListIterator,BidirectionalIterator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
-
Method Summary
Modifier and Type Method Description default voidadd(double k)Inserts the specified element into the list (optional operation).default voidadd(Double k)Deprecated.Please use the corresponding type-specific method instead.default Doublenext()Deprecated.Please use the corresponding type-specific method instead.default Doubleprevious()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(double k)Replaces the last element returned bynext()orprevious()with the specified element (optional operation).default voidset(Double 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.doubles.DoubleBidirectionalIterator
back, previousDouble, skip
-
Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleIterator
forEachRemaining, nextDouble
-
Methods inherited from interface java.util.ListIterator
hasNext, hasPrevious, nextIndex, previousIndex
-
Methods inherited from interface java.util.PrimitiveIterator.OfDouble
forEachRemaining
-
-
-
-
Method Detail
-
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:
ListIterator.set(Object)
-
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:
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:
removein interfaceIterator<Double>- Specified by:
removein interfaceListIterator<Double>- See Also:
ListIterator.remove()
-
set
@Deprecated default void set(Double k)
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
setin interfaceListIterator<Double>
-
add
@Deprecated default void add(Double k)
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
addin interfaceListIterator<Double>
-
next
@Deprecated default Double next()
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
nextin interfaceDoubleIterator- Specified by:
nextin interfaceIterator<Double>- Specified by:
nextin interfaceListIterator<Double>- Specified by:
nextin interfacePrimitiveIterator.OfDouble
-
previous
@Deprecated default Double previous()
Deprecated.Please use the corresponding type-specific method instead.Returns the previous element from the collection.- Specified by:
previousin interfaceBidirectionalIterator<Double>- Specified by:
previousin interfaceDoubleBidirectionalIterator- Specified by:
previousin interfaceListIterator<Double>- Returns:
- the previous element from the collection.
- See Also:
ListIterator.previous()
-
-