- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for endOfData (0.08 sec)
-
guava/src/com/google/common/collect/AbstractIterator.java
* elements left in the iteration. * * @return {@code null}; a convenience so your {@code computeNext} implementation can use the * simple statement {@code return endOfData();} */ @CanIgnoreReturnValue @CheckForNull protected final T endOfData() { state = State.DONE; return null; } @Override public final boolean hasNext() { checkState(state != State.FAILED);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Mar 18 02:04:10 UTC 2022 - 6.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/AbstractIteratorTest.java
public Integer computeNext() { switch (rep++) { case 0: return 0; case 1: return 1; case 2: return endOfData(); default: throw new AssertionError("Should not have been invoked again"); } } }; assertTrue(iter.hasNext());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 5.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
switch (rep++) { case 0: return 0; case 1: return 1; case 2: return endOfData(); default: throw new AssertionError("Should not have been invoked again"); } } }; assertTrue(iter.hasNext());
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
switch (rep++) { case 0: return 0; case 1: return 1; case 2: return endOfData(); default: throw new AssertionError("Should not have been invoked again"); } } }; assertTrue(iter.hasNext());
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
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/graph/EndpointPairIterator.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 09 17:31:04 UTC 2021 - 5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ConsumingQueueIterator.java
} @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) -
guava/src/com/google/common/base/AbstractIterator.java
NOT_READY, DONE, FAILED, } @CheckForNull private T next; @CheckForNull protected abstract T computeNext(); @CanIgnoreReturnValue @CheckForNull protected final T endOfData() { state = State.DONE; return null; } @Override public final boolean hasNext() { checkState(state != State.FAILED); switch (state) { case DONE: return false;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 09 17:31:04 UTC 2021 - 2.5K bytes - Viewed (0) -
guava/src/com/google/common/graph/MultiEdgesConnecting.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 06 00:47:57 UTC 2021 - 2.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeRangeMap.java
if (entry.getUpperBound().compareTo(subRange.lowerBound) <= 0) { return endOfData(); } return immutableEntry(entry.getKey().intersection(subRange), entry.getValue()); } return endOfData(); } }; } }; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.9K bytes - Viewed (0)