- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ConsumingQueueIterator (0.21 sec)
-
guava/src/com/google/common/collect/ConsumingQueueIterator.java
* iterates. This class is not thread safe. */ @GwtCompatible @ElementTypesAreNonnullByDefault final class ConsumingQueueIterator<T extends @Nullable Object> extends AbstractIterator<T> { private final Queue<T> queue; ConsumingQueueIterator(Queue<T> queue) { this.queue = checkNotNull(queue); } @Override @CheckForNull protected T computeNext() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Jan 21 14:48:03 UTC 2023 - 1.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
checkNotNull(iterable); return new FluentIterable<T>() { @Override public Iterator<T> iterator() { return (iterable instanceof Queue) ? new ConsumingQueueIterator<>((Queue<T>) iterable) : Iterators.consumingIterator(iterable.iterator()); } @Override public String toString() { return "Iterables.consumingIterable(...)";
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 24 19:38:27 UTC 2024 - 42.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
* this method will write nulls into the array during iteration. * * <p>This is mainly just to avoid the intermediate ArrayDeque in ConsumingQueueIterator. */ private static <I extends Iterator<?>> Iterator<I> consumingForArray(@Nullable I... elements) { return new UnmodifiableIterator<I>() { int index = 0; @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.3K bytes - Viewed (0)