Package it.unimi.dsi.fastutil.bytes
Interface ByteListIterator
-
- All Superinterfaces:
BidirectionalIterator<Byte>,ByteBidirectionalIterator,ByteIterator,Iterator<Byte>,ListIterator<Byte>,ObjectBidirectionalIterator<Byte>,ObjectIterator<Byte>
- All Known Implementing Classes:
AbstractByteListIterator,ByteIterators.EmptyIterator,ByteIterators.UnmodifiableListIterator
public interface ByteListIterator extends ByteBidirectionalIterator, ListIterator<Byte>
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(byte k)Inserts the specified element into the list (optional operation).default voidadd(Byte k)Deprecated.Please use the corresponding type-specific method instead.default Bytenext()Deprecated.Please use the corresponding type-specific method instead.default Byteprevious()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(byte k)Replaces the last element returned bynext()orprevious()with the specified element (optional operation).default voidset(Byte 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.bytes.ByteBidirectionalIterator
back, previousByte, skip
-
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteIterator
forEachRemaining, forEachRemaining, nextByte
-
Methods inherited from interface java.util.ListIterator
hasNext, hasPrevious, nextIndex, previousIndex
-
-
-
-
Method Detail
-
set
default void set(byte 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(byte 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<Byte>- Specified by:
removein interfaceListIterator<Byte>- See Also:
ListIterator.remove()
-
set
@Deprecated default void set(Byte k)
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
setin interfaceListIterator<Byte>
-
add
@Deprecated default void add(Byte k)
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
addin interfaceListIterator<Byte>
-
next
@Deprecated default Byte next()
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
nextin interfaceByteIterator- Specified by:
nextin interfaceIterator<Byte>- Specified by:
nextin interfaceListIterator<Byte>
-
previous
@Deprecated default Byte previous()
Deprecated.Please use the corresponding type-specific method instead.Returns the previous element from the collection.- Specified by:
previousin interfaceBidirectionalIterator<Byte>- Specified by:
previousin interfaceByteBidirectionalIterator- Specified by:
previousin interfaceListIterator<Byte>- Returns:
- the previous element from the collection.
- See Also:
ListIterator.previous()
-
-