| Modifier and Type | Field and Description |
|---|---|
static ByteIterator |
EMPTY |
| Constructor and Description |
|---|
ByteIterator() |
| Modifier and Type | Method and Description |
|---|---|
static ByteIterator |
empty() |
<E extends Exception> |
foreachIndexed(Throwables.IndexedByteConsumer<E> action) |
void |
forEachRemaining(Consumer<? super Byte> action)
Deprecated.
|
<E extends Exception> |
foreachRemaining(Throwables.ByteConsumer<E> action) |
static ByteIterator |
generate(BooleanSupplier hasNext,
ByteSupplier supplier) |
static ByteIterator |
generate(ByteSupplier supplier)
Returns an infinite
ByteIterator. |
ObjIterator<IndexedByte> |
indexed() |
ObjIterator<IndexedByte> |
indexed(long startIndex) |
Byte |
next()
Deprecated.
|
abstract byte |
nextByte() |
static ByteIterator |
of(byte... a) |
static ByteIterator |
of(byte[] a,
int fromIndex,
int toIndex) |
static ByteIterator |
of(Supplier<? extends ByteIterator> iteratorSupplier)
Lazy evaluation.
|
static ByteIterator |
oF(Supplier<byte[]> 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 ByteIterator EMPTY
public static ByteIterator empty()
@SafeVarargs public static ByteIterator of(byte... a)
a - public static ByteIterator of(byte[] a, int fromIndex, int toIndex)
a - fromIndex - toIndex - public static ByteIterator of(Supplier<? extends ByteIterator> iteratorSupplier)
iteratorSupplier - public static ByteIterator oF(Supplier<byte[]> arraySupplier)
arraySupplier - public static ByteIterator generate(ByteSupplier supplier)
ByteIterator.supplier - public static ByteIterator generate(BooleanSupplier hasNext, ByteSupplier supplier)
hasNext - supplier - @Deprecated public Byte next()
public abstract byte nextByte()
@Beta public ObjIterator<IndexedByte> indexed()
@Beta public ObjIterator<IndexedByte> indexed(long startIndex)
@Deprecated public void forEachRemaining(Consumer<? super Byte> action)
action - public <E extends Exception> void foreachRemaining(Throwables.ByteConsumer<E> action) throws E extends Exception
E - action - E - the eE extends Exceptionpublic <E extends Exception> void foreachIndexed(Throwables.IndexedByteConsumer<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.