BidirectionalIterator<java.lang.Byte>, ByteBidirectionalIterator, ByteIterator, java.util.Iterator<java.lang.Byte>, java.util.ListIterator<java.lang.Byte>, ObjectBidirectionalIterator<java.lang.Byte>, ObjectIterator<java.lang.Byte>AbstractByteListIterator, ByteIterators.EmptyIterator, ByteIterators.UnmodifiableListIteratorpublic interface ByteListIterator extends ByteBidirectionalIterator, java.util.ListIterator<java.lang.Byte>
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 | Description |
|---|---|---|
default void |
add(byte k) |
Inserts the specified element into the list (optional operation).
|
default void |
add(java.lang.Byte k) |
Deprecated.
Please use the corresponding type-specific method instead.
|
default java.lang.Byte |
next() |
Deprecated.
Please use the corresponding type-specific method instead.
|
default java.lang.Byte |
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(byte k) |
Replaces the last element returned by
next() or previous() with
the specified element (optional operation). |
default void |
set(java.lang.Byte k) |
Deprecated.
Please use the corresponding type-specific method instead.
|
hasPreviousback, previousByte, skipforEachRemaining, forEachRemaining, nextBytedefault void set(byte 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(byte 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 java.util.Iterator<java.lang.Byte>remove in interface java.util.ListIterator<java.lang.Byte>ListIterator.remove()@Deprecated default void set(java.lang.Byte k)
set in interface java.util.ListIterator<java.lang.Byte>@Deprecated default void add(java.lang.Byte k)
add in interface java.util.ListIterator<java.lang.Byte>@Deprecated default java.lang.Byte next()
next in interface ByteIteratornext in interface java.util.Iterator<java.lang.Byte>next in interface java.util.ListIterator<java.lang.Byte>@Deprecated default java.lang.Byte previous()
previous in interface BidirectionalIterator<java.lang.Byte>previous in interface ByteBidirectionalIteratorprevious in interface java.util.ListIterator<java.lang.Byte>ListIterator.previous()