| Modifier and Type | Field and Description |
|---|---|
static BooleanIterator |
EMPTY |
| Constructor and Description |
|---|
BooleanIterator() |
| Modifier and Type | Method and Description |
|---|---|
static BooleanIterator |
empty() |
<E extends Exception> |
foreachIndexed(Throwables.IndexedBooleanConsumer<E> action) |
void |
forEachRemaining(Consumer<? super Boolean> action)
Deprecated.
|
<E extends Exception> |
foreachRemaining(Throwables.BooleanConsumer<E> action) |
static BooleanIterator |
generate(BooleanSupplier supplier)
Returns an infinite
BooleanIterator. |
static BooleanIterator |
generate(BooleanSupplier hasNext,
BooleanSupplier supplier) |
ObjIterator<IndexedBoolean> |
indexed() |
ObjIterator<IndexedBoolean> |
indexed(long startIndex) |
Boolean |
next()
Deprecated.
|
abstract boolean |
nextBoolean() |
static BooleanIterator |
of(boolean... a) |
static BooleanIterator |
of(boolean[] a,
int fromIndex,
int toIndex) |
static BooleanIterator |
of(Supplier<? extends BooleanIterator> iteratorSupplier)
Lazy evaluation.
|
static BooleanIterator |
oF(Supplier<boolean[]> arraySupplier)
Lazy evaluation.
|
void |
remove()
Deprecated.
- UnsupportedOperationException
|
<C extends Collection<T>> |
toCollection(Supplier<? extends C> supplier) |
ImmutableList<T> |
toImmutableList() |
ImmutableSet<T> |
toImmutableSet() |
Set<T> |
toSet() |
public static final BooleanIterator EMPTY
public static BooleanIterator empty()
@SafeVarargs public static BooleanIterator of(boolean... a)
a - public static BooleanIterator of(boolean[] a, int fromIndex, int toIndex)
a - fromIndex - toIndex - public static BooleanIterator of(Supplier<? extends BooleanIterator> iteratorSupplier)
iteratorSupplier - public static BooleanIterator oF(Supplier<boolean[]> arraySupplier)
arraySupplier - public static BooleanIterator generate(BooleanSupplier supplier)
BooleanIterator.supplier - public static BooleanIterator generate(BooleanSupplier hasNext, BooleanSupplier supplier)
hasNext - supplier - @Deprecated public Boolean next()
public abstract boolean nextBoolean()
@Beta public ObjIterator<IndexedBoolean> indexed()
@Beta public ObjIterator<IndexedBoolean> indexed(long startIndex)
@Deprecated public void forEachRemaining(Consumer<? super Boolean> action)
action - public <E extends Exception> void foreachRemaining(Throwables.BooleanConsumer<E> action) throws E extends Exception
E - action - E - the eE extends Exceptionpublic <E extends Exception> void foreachIndexed(Throwables.IndexedBooleanConsumer<E> action) throws E extends Exception
E - action - E - the eE extends Exception@Deprecated public void remove() throws UnsupportedOperationException
remove in interface Iterator<T>UnsupportedOperationExceptionpublic Set<T> toSet()
public <C extends Collection<T>> C toCollection(Supplier<? extends C> supplier)
C - supplier - public ImmutableList<T> toImmutableList()
public ImmutableSet<T> toImmutableSet()
Copyright © 2021. All rights reserved.