- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for iterators (0.13 sec)
-
android/guava/src/com/google/common/collect/Iterators.java
* elements of each iterator in {@code inputs}. The input iterators are not polled until * necessary. * * <p>The returned iterator supports {@code remove()} when the corresponding input iterator * supports it. The methods of the returned iterator may throw {@code NullPointerException} if any * of the input iterators is null. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
} public void testSize1() { Iterator<Integer> iterator = singleton(0).iterator(); assertEquals(1, Iterators.size(iterator)); } public void testSize_partiallyConsumed() { Iterator<Integer> iterator = asList(1, 2, 3, 4, 5).iterator(); iterator.next(); iterator.next(); assertEquals(3, Iterators.size(iterator)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
} public void testSize1() { Iterator<Integer> iterator = singleton(0).iterator(); assertEquals(1, Iterators.size(iterator)); } public void testSize_partiallyConsumed() { Iterator<Integer> iterator = asList(1, 2, 3, 4, 5).iterator(); iterator.next(); iterator.next(); assertEquals(3, Iterators.size(iterator)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
return set1.isEmpty() && set2.isEmpty(); } @Override public UnmodifiableIterator<E> iterator() { return new AbstractIterator<E>() { final Iterator<? extends E> itr1 = set1.iterator(); final Iterator<? extends E> itr2 = set2.iterator(); @Override @CheckForNull protected E computeNext() { if (itr1.hasNext()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 78.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multimaps.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 21:21:17 UTC 2024 - 86.3K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
* Cache} interfaces. The {@code asMap} view (and its collection views) have <i>weakly consistent * iterators</i>. This means that they are safe for concurrent use, but if other threads modify the * cache after the iterator is created, it is undefined which of these changes, if any, are * reflected in that iterator. These iterators never throw {@link ConcurrentModificationException}. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 52K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Synchronized.java
@Override public boolean removeAll(Collection<?> c) { synchronized (mutex) { return Iterators.removeAll(delegate().iterator(), c); } } @Override public boolean retainAll(Collection<?> c) { synchronized (mutex) { return Iterators.retainAll(delegate().iterator(), c); } } private static final long serialVersionUID = 0; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 53.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Synchronized.java
@Override public boolean removeAll(Collection<?> c) { synchronized (mutex) { return Iterators.removeAll(delegate().iterator(), c); } } @Override public boolean retainAll(Collection<?> c) { synchronized (mutex) { return Iterators.retainAll(delegate().iterator(), c); } } private static final long serialVersionUID = 0; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 57.2K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheBuilder.java
* Cache} interfaces. The {@code asMap} view (and its collection views) have <i>weakly consistent * iterators</i>. This means that they are safe for concurrent use, but if other threads modify the * cache after the iterator is created, it is undefined which of these changes, if any, are * reflected in that iterator. These iterators never throw {@link ConcurrentModificationException}. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 51.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
@ParameterizedTest @ArgumentsSource(FileSystemParamProvider::class) fun iterator(parameters: Pair<FileSystem, Boolean>) { setUp(parameters.first, parameters.second) set("a", "a1", "a2") set("b", "b1", "b2") set("c", "c1", "c2") val iterator = cache.snapshots() assertThat(iterator.hasNext()).isTrue() iterator.next().use { assertThat(it.key()).isEqualTo("a")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 14:55:09 UTC 2024 - 75.8K bytes - Viewed (0)