Package it.unimi.dsi.fastutil.booleans
Interface BooleanBigListIterator
- All Superinterfaces:
BidirectionalIterator<Boolean>
,BigListIterator<Boolean>
,BooleanBidirectionalIterator
,BooleanIterator
,Iterator<Boolean>
,ObjectBidirectionalIterator<Boolean>
,ObjectIterator<Boolean>
,PrimitiveIterator<Boolean,
BooleanConsumer>
- All Known Implementing Classes:
AbstractBooleanBigListIterator
,BooleanBigListIterators.AbstractIndexBasedBigListIterator
,BooleanBigListIterators.BigListIteratorListIterator
,BooleanBigListIterators.EmptyBigListIterator
,BooleanBigListIterators.UnmodifiableBigListIterator
public interface BooleanBigListIterator
extends BooleanBidirectionalIterator, BigListIterator<Boolean>
A type-specific
BigListIterator
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
add
(boolean k) Inserts the specified element into the list (optional operation).default void
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
(boolean k) Replaces the last element returned bynext()
orprevious()
with the specified element (optional operation).default void
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.booleans.BooleanBidirectionalIterator
back, previous, previousBoolean
Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanIterator
forEachRemaining, forEachRemaining, next, nextBoolean
-
Method Details
-
set
default void set(boolean k) Replaces the last element returned bynext()
orprevious()
with the specified element (optional operation).- See Also:
-
add
default void add(boolean k) Inserts the specified element into the list (optional operation).- See Also:
-
set
Deprecated.Please use the corresponding type-specific method instead.Replaces the last element returned byBooleanIterator.next()
orBooleanBidirectionalIterator.previous()
with the specified element (optional operation).- Specified by:
set
in interfaceBigListIterator<Boolean>
- Parameters:
k
- an element.- See Also:
-
add
Deprecated.Please use the corresponding type-specific method instead.Inserts the specified element into the list (optional operation).- Specified by:
add
in interfaceBigListIterator<Boolean>
- Parameters:
k
- an element.- See Also:
-
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:
-
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:
-
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
BooleanIterator.next()
forn
times (possibly stopping ifIterator.hasNext()
becomes false).- Specified by:
skip
in interfaceBooleanBidirectionalIterator
- Specified by:
skip
in interfaceBooleanIterator
- Specified by:
skip
in interfaceObjectBidirectionalIterator<Boolean>
- Specified by:
skip
in interfaceObjectIterator<Boolean>
- Parameters:
n
- the number of elements to skip.- Returns:
- the number of elements actually skipped.
- See Also:
-