- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for computeNext (0.09 sec)
-
guava-tests/test/com/google/common/base/AbstractIteratorTest.java
// Make sure computeNext() doesn't get invoked again assertFalse(iter.hasNext()); assertThrows(NoSuchElementException.class, iter::next); } public void testSneakyThrow() throws Exception { Iterator<Integer> iter = new AbstractIterator<Integer>() { boolean haveBeenCalled; @Override public Integer computeNext() { if (haveBeenCalled) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 5.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractIterator.java
* IllegalStateException}. */ @CheckForNull protected abstract T computeNext(); /** * Implementations of {@link #computeNext} <b>must</b> invoke this method when there are no * elements left in the iteration. * * @return {@code null}; a convenience so your {@code computeNext} implementation can use the * simple statement {@code return endOfData();} */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Mar 18 02:04:10 UTC 2022 - 6.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 8.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 8.1K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/DirectedGraphConnections.java
Set<N> seenNodes = new HashSet<>(); return new AbstractIterator<N>() { @Override @CheckForNull protected N computeNext() { while (nodeConnections.hasNext()) { NodeConnection<N> nodeConnection = nodeConnections.next(); boolean added = seenNodes.add(nodeConnection.node);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 18K bytes - Viewed (0) -
guava/src/com/google/common/collect/ConsumingQueueIterator.java
private final Queue<T> queue; ConsumingQueueIterator(Queue<T> queue) { this.queue = checkNotNull(queue); } @Override @CheckForNull protected T computeNext() { // TODO(b/192579700): Use a ternary once it no longer confuses our nullness checker. if (queue.isEmpty()) { return endOfData(); } return queue.remove(); }
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/RegularContiguousSet.java
} @Override public UnmodifiableIterator<C> iterator() { return new AbstractSequentialIterator<C>(first()) { final C last = last(); @Override @CheckForNull protected C computeNext(C previous) { return equalsOrThrow(previous, last) ? null : domain.next(previous); } }; } @GwtIncompatible // NavigableSet @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 8.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multisets.java
// TODO(lowasser): consider making the entries live views return new AbstractIterator<Entry<E>>() { @Override @CheckForNull protected Entry<E> computeNext() { if (iterator1.hasNext()) { Entry<? extends E> entry1 = iterator1.next(); E element = entry1.getElement();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 41.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/Multisets.java
// TODO(lowasser): consider making the entries live views return new AbstractIterator<Entry<E>>() { @Override @CheckForNull protected Entry<E> computeNext() { if (iterator1.hasNext()) { Entry<? extends E> entry1 = iterator1.next(); E element = entry1.getElement();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 41.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeRangeMap.java
.values() .iterator(); return new AbstractIterator<Entry<Range<K>, V>>() { @Override @CheckForNull protected Entry<Range<K>, V> computeNext() { if (backingItr.hasNext()) { RangeMapEntry<K, V> entry = backingItr.next(); if (entry.getUpperBound().compareTo(subRange.lowerBound) <= 0) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.9K bytes - Viewed (0)