- Sort Score
- Num 10 results
- Language All
Results 331 - 340 of 658 for iterator (0.05 seconds)
-
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java
List<K> keys = copyToList(multimap().keySet()); for (K key : keys) { resetContainer(); int size = getNumElements(); Iterator<Entry<K, Collection<V>>> asMapItr = multimap().asMap().entrySet().iterator(); Collection<V> collection = null; while (asMapItr.hasNext()) { Entry<K, Collection<V>> asMapEntry = asMapItr.next(); if (key.equals(asMapEntry.getKey())) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 7.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java
public void testDescendingNavigation() { List<Entry<E>> ascending = new ArrayList<>(); Iterators.addAll(ascending, sortedMultiset.entrySet().iterator()); List<Entry<E>> descending = new ArrayList<>(); Iterators.addAll(descending, sortedMultiset.descendingMultiset().entrySet().iterator()); Collections.reverse(descending); assertEquals(ascending, descending); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 20:14:36 GMT 2024 - 26K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableMapEntrySet.java
int copyIntoArray(@Nullable Object[] dst, int offset) { return entries.copyIntoArray(dst, offset); } @Override public UnmodifiableIterator<Entry<K, V>> iterator() { return entries.iterator(); } @Override ImmutableList<Entry<K, V>> createAsList() { return entries; } // redeclare to help optimizers with b/310253115
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 3.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractIndexedListIterator.java
private int position; /** Returns the element with the specified index. This method is called by {@link #next()}. */ @ParametricNullness protected abstract E get(int index); /** * Constructs an iterator across a sequence of the given size whose initial position is 0. That * is, the first call to {@link #next()} will return the first element (or throw {@link * NoSuchElementException} if {@code size} is zero). *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/PredicatesTest.java
List<Predicate<Object>> list = new ArrayList<>(); 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());
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 32.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HeadersCommon.kt
if (result == null) result = ArrayList(2) result.add(value(i)) } } return result?.unmodifiable().orEmpty() } internal fun Headers.commonIterator(): Iterator<Pair<String, String>> = Array(size) { name(it) to value(it) }.iterator() internal fun Headers.commonNewBuilder(): Headers.Builder { val result = Headers.Builder() result.namesAndValues += namesAndValues return result }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon May 05 16:01:00 GMT 2025 - 5.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/FilteredKeyMultimap.java
import com.google.common.base.Predicate; import com.google.errorprone.annotations.CanIgnoreReturnValue; import com.google.j2objc.annotations.WeakOuter; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.jspecify.annotations.Nullable; /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 6.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/MultiInputStreamTest.java
public long skip(long n) { return 0; } }; } }) .iterator()); assertEquals(0, multi.skip(-1)); assertEquals(0, multi.skip(-1)); assertEquals(0, multi.skip(0)); ByteStreams.skipFully(multi, 20); assertEquals(20, multi.read()); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 4.7K bytes - Click Count (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 8.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
assertFalse(list.contains("chicken")); assertEquals(-1, list.indexOf("chicken")); assertEquals(-1, list.lastIndexOf("chicken")); } private static <E> Iterator<E> asIterator(E... elements) { return asList(elements).iterator(); } // In GWT, java.util.TreeSet throws ClassCastException when the comparator // throws it, unlike the JDK. Therefore, we accept ClassCastException as a
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 45.8K bytes - Click Count (0)