Package it.unimi.dsi.fastutil.floats
Interface FloatListIterator
-
- All Superinterfaces:
BidirectionalIterator<Float>,FloatBidirectionalIterator,FloatIterator,Iterator<Float>,ListIterator<Float>,ObjectBidirectionalIterator<Float>,ObjectIterator<Float>
- All Known Implementing Classes:
AbstractFloatListIterator,FloatIterators.EmptyIterator,FloatIterators.UnmodifiableListIterator
public interface FloatListIterator extends FloatBidirectionalIterator, ListIterator<Float>
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
-
-
Method Summary
Modifier and Type Method Description default voidadd(float k)Inserts the specified element into the list (optional operation).default voidadd(Float k)Deprecated.Please use the corresponding type-specific method instead.default Floatnext()Deprecated.Please use the corresponding type-specific method instead.default Floatprevious()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(float k)Replaces the last element returned bynext()orprevious()with the specified element (optional operation).default voidset(Float 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.floats.FloatBidirectionalIterator
back, previousFloat, skip
-
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatIterator
forEachRemaining, forEachRemaining, nextFloat
-
Methods inherited from interface java.util.ListIterator
hasNext, hasPrevious, nextIndex, previousIndex
-
-
-
-
Method Detail
-
set
default void set(float 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(float 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<Float>- Specified by:
removein interfaceListIterator<Float>- See Also:
ListIterator.remove()
-
set
@Deprecated default void set(Float k)
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
setin interfaceListIterator<Float>
-
add
@Deprecated default void add(Float k)
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
addin interfaceListIterator<Float>
-
next
@Deprecated default Float next()
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
nextin interfaceFloatIterator- Specified by:
nextin interfaceIterator<Float>- Specified by:
nextin interfaceListIterator<Float>
-
previous
@Deprecated default Float previous()
Deprecated.Please use the corresponding type-specific method instead.Returns the previous element from the collection.- Specified by:
previousin interfaceBidirectionalIterator<Float>- Specified by:
previousin interfaceFloatBidirectionalIterator- Specified by:
previousin interfaceListIterator<Float>- Returns:
- the previous element from the collection.
- See Also:
ListIterator.previous()
-
-