- Sort Score
- Result 10 results
- Languages All
Results 351 - 360 of 651 for iterators (0.12 sec)
-
android/guava/src/com/google/common/collect/TransformedListIterator.java
import com.google.common.annotations.GwtCompatible; import com.google.common.base.Function; import java.util.ListIterator; import org.checkerframework.checker.nullness.qual.Nullable; /** * An iterator that transforms a backing list iterator; for internal use. This avoids the object * overhead of constructing a {@link Function} for internal methods. * * @author Louis Wasserman */ @GwtCompatible @ElementTypesAreNonnullByDefault
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Nov 21 21:43:01 UTC 2023 - 2.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/TransformedListIterator.java
import com.google.common.annotations.GwtCompatible; import com.google.common.base.Function; import java.util.ListIterator; import org.checkerframework.checker.nullness.qual.Nullable; /** * An iterator that transforms a backing list iterator; for internal use. This avoids the object * overhead of constructing a {@link Function} for internal methods. * * @author Louis Wasserman */ @GwtCompatible @ElementTypesAreNonnullByDefault
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Nov 21 21:43:01 UTC 2023 - 2.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java
public int size() { return deduped.length; } @Override public Iterator<String> iterator() { return MinimalCollection.of(deduped).iterator(); } }; } }) .named("AbstractSet") .withFeatures( CollectionFeature.NONE,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 19.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java
Cache<Integer, Integer> cache = CacheBuilder.newBuilder().expireAfterWrite(1000, MILLISECONDS).ticker(fakeTicker).build(); cache.put(10, 20); Iterator<Integer> iterator = cache.asMap().values().iterator(); iterator.next(); iterator.remove(); assertEquals(0, cache.size()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 14.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java
*/ Entry<?, ?>[] entries = new Entry<?, ?>[elements.length]; Map<K, Iterator<V>> valueIterators = new HashMap<>(); for (int i = 0; i < elements.length; i++) { @SuppressWarnings("unchecked") // These come from Entry<K, V> objects somewhere. K key = (K) elements[i]; Iterator<V> valueItr = valueIterators.get(key); if (valueItr == null) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 26.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
assertThat(DoubleMath.mean(ImmutableList.of(11, -22, 44, -88).iterator())) .isWithin(1.0e-10) .of(-13.75); assertThat(DoubleMath.mean(ImmutableList.of(11).iterator())).isWithin(1.0e-10).of(11); assertThrows( IllegalArgumentException.class, () -> DoubleMath.mean(ImmutableList.<Integer>of().iterator())); } @GwtIncompatible // DoubleMath.mean
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 27.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/PredicatesTest.java
final List<Predicate<Object>> list = newArrayList(); Iterable<Predicate<Object>> iterable = new Iterable<Predicate<Object>>() { @Override public Iterator<Predicate<Object>> iterator() { return list.iterator(); } }; Predicate<Object> predicate = Predicates.and(iterable); assertTrue(predicate.apply(1)); list.add(Predicates.alwaysFalse());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 32.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java
return standardToString(); } @Override public Set<Entry<K, V>> entrySet() { return new StandardEntrySet() { @Override public Iterator<Entry<K, V>> iterator() { return backingMap.entrySet().iterator(); } }; } @Override public void clear() { standardClear(); } @Override public boolean isEmpty() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 9.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt
} /** * Returns an iterator over the cache's current entries. This iterator doesn't throw * `ConcurrentModificationException`, but if new entries are added while iterating, those new * entries will not be returned by the iterator. If existing entries are removed during iteration, * they will be absent (unless they were already returned). *
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 34.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 7.5K bytes - Viewed (0)