| Constructor and Description |
|---|
BiIterator() |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> BiIterator<A,B> |
empty() |
abstract <E extends Exception> |
forEachRemaining(Throwables.BiConsumer<? super A,? super B,E> action)
For each remaining.
|
static <A,B> BiIterator<A,B> |
generate(BooleanSupplier hasNext,
Consumer<Pair<A,B>> output) |
static <A,B> BiIterator<A,B> |
generate(Consumer<Pair<A,B>> output)
Returns an infinite
BiIterator. |
static <A,B> BiIterator<A,B> |
generate(int fromIndex,
int toIndex,
IndexedConsumer<Pair<A,B>> output) |
abstract <R> ObjIterator<R> |
map(BiFunction<? super A,? super B,R> mapper) |
static <K,V> BiIterator<K,V> |
of(Iterator<Map.Entry<K,V>> iter) |
static <K,V> BiIterator<K,V> |
of(Map<K,V> map) |
void |
remove()
Deprecated.
- UnsupportedOperationException
|
Pair<A,B>[] |
toArray() |
<T> T[] |
toArray(T[] a) |
<C extends Collection<T>> |
toCollection(Supplier<? extends C> supplier) |
ImmutableList<T> |
toImmutableList() |
ImmutableSet<T> |
toImmutableSet() |
List<Pair<A,B>> |
toList() |
Set<T> |
toSet() |
static <T,L,R> BiIterator<L,R> |
unzip(Iterator<? extends T> iter,
BiConsumer<? super T,Pair<L,R>> unzip) |
static <A,B> BiIterator<A,B> |
zip(A[] a,
B[] b) |
static <A,B> BiIterator<A,B> |
zip(A[] a,
B[] b,
A valueForNoneA,
B valueForNoneB) |
static <A,B> BiIterator<A,B> |
zip(Collection<A> a,
Collection<B> b) |
static <A,B> BiIterator<A,B> |
zip(Collection<A> a,
Collection<B> b,
A valueForNoneA,
B valueForNoneB) |
static <A,B> BiIterator<A,B> |
zip(Iterator<A> iterA,
Iterator<B> iterB) |
static <A,B> BiIterator<A,B> |
zip(Iterator<A> iterA,
Iterator<B> iterB,
A valueForNoneA,
B valueForNoneB) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasNext, nextpublic static <A,B> BiIterator<A,B> empty()
A - B - public static <K,V> BiIterator<K,V> of(Map<K,V> map)
K - the key typeV - the value typemap - public static <K,V> BiIterator<K,V> of(Iterator<Map.Entry<K,V>> iter)
K - the key typeV - the value typeiter - public static <A,B> BiIterator<A,B> generate(Consumer<Pair<A,B>> output)
BiIterator.A - B - output - transfer the next values.public static <A,B> BiIterator<A,B> generate(BooleanSupplier hasNext, Consumer<Pair<A,B>> output)
A - B - hasNext - output - public static <A,B> BiIterator<A,B> generate(int fromIndex, int toIndex, IndexedConsumer<Pair<A,B>> output)
A - B - fromIndex - toIndex - output - public static <A,B> BiIterator<A,B> zip(A[] a, B[] b)
A - B - a - b - public static <A,B> BiIterator<A,B> zip(A[] a, B[] b, A valueForNoneA, B valueForNoneB)
A - B - a - b - valueForNoneA - valueForNoneB - public static <A,B> BiIterator<A,B> zip(Collection<A> a, Collection<B> b)
A - B - a - b - public static <A,B> BiIterator<A,B> zip(Collection<A> a, Collection<B> b, A valueForNoneA, B valueForNoneB)
A - B - a - b - valueForNoneA - valueForNoneB - public static <A,B> BiIterator<A,B> zip(Iterator<A> iterA, Iterator<B> iterB)
A - B - iterA - iterB - public static <A,B> BiIterator<A,B> zip(Iterator<A> iterA, Iterator<B> iterB, A valueForNoneA, B valueForNoneB)
A - B - iterA - iterB - valueForNoneA - valueForNoneB - public static <T,L,R> BiIterator<L,R> unzip(Iterator<? extends T> iter, BiConsumer<? super T,Pair<L,R>> unzip)
T - L - R - iter - unzip - output parameter.public abstract <E extends Exception> void forEachRemaining(Throwables.BiConsumer<? super A,? super B,E> action) throws E extends Exception
E - action - E - the eE extends Exceptionpublic abstract <R> ObjIterator<R> map(BiFunction<? super A,? super B,R> mapper)
R - mapper - public <T> T[] toArray(T[] a)
@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.