Package it.unimi.dsi.fastutil.booleans
Interface BooleanBigListIterator
- All Superinterfaces:
it.unimi.dsi.fastutil.BidirectionalIterator<java.lang.Boolean>,it.unimi.dsi.fastutil.BigListIterator<java.lang.Boolean>,BooleanBidirectionalIterator,it.unimi.dsi.fastutil.booleans.BooleanIterator,java.util.Iterator<java.lang.Boolean>,it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<java.lang.Boolean>,it.unimi.dsi.fastutil.objects.ObjectIterator<java.lang.Boolean>,java.util.PrimitiveIterator<java.lang.Boolean,BooleanConsumer>
- All Known Implementing Classes:
AbstractBooleanBigListIterator,BooleanBigListIterators.AbstractIndexBasedBigListIterator,BooleanBigListIterators.BigListIteratorListIterator,BooleanBigListIterators.EmptyBigListIterator,BooleanBigListIterators.UnmodifiableBigListIterator
public interface BooleanBigListIterator extends BooleanBidirectionalIterator, it.unimi.dsi.fastutil.BigListIterator<java.lang.Boolean>
A type-specific
BigListIterator.- See Also:
BigListIterator
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
java.util.PrimitiveIterator.OfDouble, java.util.PrimitiveIterator.OfInt, java.util.PrimitiveIterator.OfLong -
Method Summary
Modifier and Type Method Description default voidadd(boolean k)Inserts the specified element into the list (optional operation).default voidadd(java.lang.Boolean k)Deprecated.Please use the corresponding type-specific method instead.default longback(long n)Moves back for the given number of elements.default voidset(boolean k)Replaces the last element returned bynext()orprevious()with the specified element (optional operation).default voidset(java.lang.Boolean k)Deprecated.Please use the corresponding type-specific method instead.default intskip(int n)default longskip(long n)Skips the given number of elements.Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPreviousMethods inherited from interface it.unimi.dsi.fastutil.BigListIterator
nextIndex, previousIndexMethods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanBidirectionalIterator
back, previous, previousBooleanMethods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanIterator
forEachRemaining, forEachRemaining, next, nextBooleanMethods inherited from interface java.util.Iterator
hasNext, remove
-
Method Details
-
set
default void set(boolean k)Replaces the last element returned bynext()orprevious()with the specified element (optional operation).- See Also:
ListIterator.set(Object)
-
add
default void add(boolean k)Inserts the specified element into the list (optional operation).- See Also:
ListIterator.add(Object)
-
set
@Deprecated default void set(java.lang.Boolean k)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:
setin interfaceit.unimi.dsi.fastutil.BigListIterator<java.lang.Boolean>
-
add
@Deprecated default void add(java.lang.Boolean k)Deprecated.Please use the corresponding type-specific method instead.Inserts the specified element into the list (optional operation).- Specified by:
addin interfaceit.unimi.dsi.fastutil.BigListIterator<java.lang.Boolean>
-
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()forntimes (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()forntimes (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)- Specified by:
skipin interfaceBooleanBidirectionalIterator- Specified by:
skipin interfaceit.unimi.dsi.fastutil.booleans.BooleanIterator- Specified by:
skipin interfaceit.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<java.lang.Boolean>- Specified by:
skipin interfaceit.unimi.dsi.fastutil.objects.ObjectIterator<java.lang.Boolean>
-