- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 757 for iterator (1.03 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
} } /** * Verifies that an Iterator is unmodifiable. * * <p>This test only works with iterators that iterate over a finite set. */ public static void assertIteratorIsUnmodifiable(Iterator<?> iterator) { while (iterator.hasNext()) { iterator.next(); try { iterator.remove(); fail("Remove on unmodifiable iterator succeeded");
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 14.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java
assertFalse(getMap().entrySet().iterator().hasNext()); } @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_REMOVE}) @CollectionSize.Require(SEVERAL) public void testClearConcurrentWithEntrySetIteration() { assertThrows( ConcurrentModificationException.class, () -> { Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator(); getMap().clear();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.9K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java
int dummy = 0; for (int i = 0; i < reps; i++) { StringBuilder sb = new StringBuilder(); Iterator<String> iterator = components.iterator(); if (iterator.hasNext()) { sb.append(iterator.next().toString()); while (iterator.hasNext()) { sb.append(DELIMITER_STRING); sb.append(iterator.next()); } } dummy ^= sb.toString().length(); } return dummy; }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 16:19:35 UTC 2024 - 5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingMap.java
} /** * A sensible definition of {@link #clear} in terms of the {@code iterator} method of {@link * #entrySet}. In many cases, you may wish to override {@link #clear} to forward to this * implementation. * * @since 7.0 */ protected void standardClear() { Iterators.clear(entrySet().iterator()); } /**Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 17:32:30 UTC 2025 - 9.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java
assertFalse(underlying.containsKey("b")); Iterator<String> keyIterator = keys.iterator(); keyIterator.next(); keyIterator.remove(); assertFalse(underlying.containsKey("c")); Collection<String> values = map.values(); values.remove("4"); assertFalse(underlying.containsKey("d")); Iterator<String> valueIterator = values.iterator(); valueIterator.next(); valueIterator.remove();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 12.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMultimap.java
* need for a distinct {@code ImmutableBiMultimap} type. * * <p><a id="iteration"></a> * * <p><b>Key-grouped iteration.</b> All view collections follow the same iteration order. In all * current implementations, the iteration order always keeps multiple entries with the same key * together. Any creation method that would customarily respect insertion order (such as {@linkRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 09 15:58:48 UTC 2025 - 28.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/LinkedListMultimap.java
* {@link #entries()}. Unlike {@link LinkedHashMultimap}, the iteration order is kept consistent * between keys, entries and values. For example, calling: * * {@snippet : * multimap.remove(key1, foo); * } * * <p>changes the entries iteration order to {@code [key2=bar, key1=baz]} and the key iteration * order to {@code [key2, key1]}. The {@link #entries()} iterator returns mutable map entries, andRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 27K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ResolutionNode.java
*/ public boolean isChildOfRootNode() { return parent != null && parent.parent == null; } public Iterator<ResolutionNode> getChildrenIterator() { return children.iterator(); } public int getDepth() { return depth; } public List<ArtifactRepository> getRemoteRepositories() { return remoteRepositories;Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.6K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/io/xpp3/CoreExtensionsXpp3Writer.java
if ((coreExtensions.getExtensions() != null) && (coreExtensions.getExtensions().size() > 0)) { for (Iterator iter = coreExtensions.getExtensions().iterator(); iter.hasNext(); ) { CoreExtension o = (CoreExtension) iter.next(); writeCoreExtension(o, "extension", serializer); } }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Oct 27 13:24:03 UTC 2025 - 6.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingNavigableMap.java
/** * A sensible definition of {@link #pollFirstEntry} in terms of the {@code iterator} of {@code * entrySet}. If you override {@code entrySet}, you may wish to override {@code pollFirstEntry} to * forward to this implementation. */ protected @Nullable Entry<K, V> standardPollFirstEntry() { return Iterators.pollNext(entrySet().iterator()); } @Override public @Nullable Entry<K, V> pollLastEntry() {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 14.1K bytes - Viewed (0)