- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 380 for hasNext (0.17 seconds)
-
android/guava/src/com/google/common/collect/ForwardingCollection.java
* A sensible definition of {@link #isEmpty} as {@code !iterator().hasNext}. If you override * {@link #isEmpty}, you may wish to override {@link #isEmpty} to forward to this implementation. * Alternately, it may be more efficient to implement {@code isEmpty} as {@code size() == 0}. * * @since 7.0 */ protected boolean standardIsEmpty() { return !iterator().hasNext(); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 8.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/ForwardingCollection.java
* A sensible definition of {@link #isEmpty} as {@code !iterator().hasNext}. If you override * {@link #isEmpty}, you may wish to override {@link #isEmpty} to forward to this implementation. * Alternately, it may be more efficient to implement {@code isEmpty} as {@code size() == 0}. * * @since 7.0 */ protected boolean standardIsEmpty() { return !iterator().hasNext(); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 8.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/EnumMultiset.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt
} // If we have a routes left, use 'em. if (routeSelection?.hasNext() == true) return true // If we haven't initialized the route selector yet, assume it'll have at least one route. val localRouteSelector = routeSelector ?: return true // If we do have a route selector, use its routes. return localRouteSelector.hasNext() } /**Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 12.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java
public void testClear() { collection.clear(); assertTrue("After clear(), a collection should be empty.", collection.isEmpty()); assertEquals(0, collection.size()); assertFalse(collection.iterator().hasNext()); } @CollectionFeature.Require(absent = SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testClear_unsupported() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/PeekingIterator.java
* <i>may</i> prevent removal of the most recent element via {@link #remove()}. * * @throws NoSuchElementException if the iteration has no more elements according to {@link * #hasNext()} */ @ParametricNullness E peek(); /** * {@inheritDoc} * * <p>The objects returned by consecutive calls to {@link #peek()} then {@link #next()} are
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractSequentialIterator.java
* result of a <i>future</i> call to {@code next()}. */ protected abstract @Nullable T computeNext(T previous); @Override public final boolean hasNext() { return nextOrNull != null; } @Override public final T next() { if (nextOrNull == null) { throw new NoSuchElementException(); } T oldNext = nextOrNull;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 2.3K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/EmptyIterator.java
*/ public EmptyIterator() { } @Override public void remove() { throw new ClUnsupportedOperationException("remove"); } @Override public boolean hasNext() { return false; } @Override public T next() { throw new ClUnsupportedOperationException("next"); }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 1.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
throw new ConcurrentModificationException(); } } @Override public boolean hasNext() { checkForConcurrentModification(); return entryIndex >= 0; } @Override @ParametricNullness public T next() { if (!hasNext()) { throw new NoSuchElementException(); } T result = result(entryIndex); toRemove = entryIndex;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 05 23:15:58 GMT 2025 - 7.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableMapValues.java
return new UnmodifiableIterator<V>() { final UnmodifiableIterator<Entry<K, V>> entryItr = map.entrySet().iterator(); @Override public boolean hasNext() { return entryItr.hasNext(); } @Override public V next() { return entryItr.next().getValue(); } }; } @Override public boolean contains(@Nullable Object object) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 3.5K bytes - Click Count (0)