public interface FloatListIterator extends FloatBidirectionalIterator, ListIterator<Float>
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().
ListIterator,
BidirectionalIterator| Modifier and Type | Method and Description |
|---|---|
default void |
add(float k)
Inserts the specified element into the list (optional operation).
|
default void |
add(Float k)
Deprecated.
Please use the corresponding type-specific method instead.
|
default Float |
next()
Deprecated.
Please use the corresponding type-specific method instead.
|
default Float |
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(float k)
Replaces the last element returned by
next() or
previous() with the specified element (optional operation). |
default void |
set(Float k)
Deprecated.
Please use the corresponding type-specific method instead.
|
back, previousFloat, skipforEachRemaining, forEachRemaining, nextFloathasPrevioushasNext, hasPrevious, nextIndex, previousIndexdefault void set(float k)
next() or
previous() with the specified element (optional operation).k - the element used to replace the last element returned.
This default implementation just throws an UnsupportedOperationException.
ListIterator.set(Object)default void add(float k)
This default implementation just throws an UnsupportedOperationException.
k - the element to insert.ListIterator.add(Object)default void remove()
This default implementation just throws an UnsupportedOperationException.
remove in interface Iterator<Float>remove in interface ListIterator<Float>ListIterator.remove()@Deprecated default void set(Float k)
set in interface ListIterator<Float>@Deprecated default void add(Float k)
add in interface ListIterator<Float>@Deprecated default Float next()
next in interface FloatIteratornext in interface Iterator<Float>next in interface ListIterator<Float>@Deprecated default Float previous()
previous in interface BidirectionalIterator<Float>previous in interface FloatBidirectionalIteratorprevious in interface ListIterator<Float>ListIterator.previous()Copyright © 2020. All rights reserved.