Package it.unimi.dsi.fastutil.bytes
Interface ByteBigListIterator
-
- All Superinterfaces:
BidirectionalIterator<java.lang.Byte>
,BigListIterator<java.lang.Byte>
,ByteBidirectionalIterator
,ByteIterator
,java.util.Iterator<java.lang.Byte>
,ObjectBidirectionalIterator<java.lang.Byte>
,ObjectIterator<java.lang.Byte>
,java.util.PrimitiveIterator<java.lang.Byte,ByteConsumer>
- All Known Implementing Classes:
AbstractByteBigListIterator
,ByteBigListIterators.AbstractIndexBasedBigListIterator
,ByteBigListIterators.BigListIteratorListIterator
,ByteBigListIterators.EmptyBigListIterator
,ByteBigListIterators.UnmodifiableBigListIterator
public interface ByteBigListIterator extends ByteBidirectionalIterator, BigListIterator<java.lang.Byte>
A type-specificBigListIterator
.- See Also:
BigListIterator
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods 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 long
back(long n)
Moves back for the given number of elements.default void
set(byte k)
Replaces the last element returned bynext()
orprevious()
with the specified element (optional operation).default void
set(java.lang.Byte k)
Deprecated.Please use the corresponding type-specific method instead.default int
skip(int n)
Skips the given number of elements.default long
skip(long n)
Skips the given number of elements.-
Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPrevious
-
Methods inherited from interface it.unimi.dsi.fastutil.BigListIterator
nextIndex, previousIndex
-
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteBidirectionalIterator
back, previous, previousByte
-
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteIterator
forEachRemaining, forEachRemaining, forEachRemaining, next, nextByte
-
-
-
-
Method Detail
-
set
default void set(byte k)
Replaces the last element returned bynext()
orprevious()
with the specified element (optional operation).- See Also:
ListIterator.set(Object)
-
add
default void add(byte k)
Inserts the specified element into the list (optional operation).- See Also:
ListIterator.add(Object)
-
set
@Deprecated default void set(java.lang.Byte k)
Deprecated.Please use the corresponding type-specific method instead.Replaces the last element returned byByteIterator.next()
orByteBidirectionalIterator.previous()
with the specified element (optional operation).- Specified by:
set
in interfaceBigListIterator<java.lang.Byte>
- Parameters:
k
- an element.- See Also:
ListIterator.set(Object)
-
add
@Deprecated default void add(java.lang.Byte k)
Deprecated.Please use the corresponding type-specific method instead.Inserts the specified element into the list (optional operation).- Specified by:
add
in interfaceBigListIterator<java.lang.Byte>
- Parameters:
k
- an element.- See Also:
ListIterator.add(Object)
-
skip
default long skip(long n)
Skips the given number of elements.The effect of this call is exactly the same as that of calling
next()
forn
times (possibly stopping ifIterator.hasNext()
becomes false).- Parameters:
n
- the number of elements to skip.- Returns:
- the number of elements actually skipped.
- See Also:
Iterator.next()
-
back
default long back(long n)
Moves back for the given number of elements.The effect of this call is exactly the same as that of calling
previous()
forn
times (possibly stopping ifBidirectionalIterator.hasPrevious()
becomes false).- Parameters:
n
- the number of elements to skip back.- Returns:
- the number of elements actually skipped.
- See Also:
BidirectionalIterator.previous()
-
skip
default int skip(int n)
Skips the given number of elements.The effect of this call is exactly the same as that of calling
ByteIterator.next()
forn
times (possibly stopping ifIterator.hasNext()
becomes false).- Specified by:
skip
in interfaceByteBidirectionalIterator
- Specified by:
skip
in interfaceByteIterator
- Specified by:
skip
in interfaceObjectBidirectionalIterator<java.lang.Byte>
- Specified by:
skip
in interfaceObjectIterator<java.lang.Byte>
- Parameters:
n
- the number of elements to skip.- Returns:
- the number of elements actually skipped.
- See Also:
Iterator.next()
-
-