- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 488 for iteratorAt (0.17 sec)
-
src/main/java/org/codelibs/core/collection/LruHashSet.java
} /** * Returns an iterator over the elements in this set. The elements are * returned in no particular order. * * @return an Iterator over the elements in this set. * @see ConcurrentModificationException */ @Override public Iterator<E> iterator() { return map.keySet().iterator(); } /**
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java
} @CollectionFeature.Require({SUPPORTS_ADD, FAILS_FAST_ON_CONCURRENT_MODIFICATION}) public void testSetCountZeroToOneConcurrentWithIteration() { Iterator<E> iterator = collection.iterator(); assertSetCount(e3(), 1); try { iterator.next(); fail("Expected ConcurrentModificationException"); } catch (ConcurrentModificationException expected) { // success } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 13.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/Helpers.java
} static <T extends @Nullable Object> Iterator<T> cycle(Iterable<T> iterable) { return new Iterator<T>() { Iterator<T> iterator = Collections.<T>emptySet().iterator(); @Override public boolean hasNext() { return true; } @Override public T next() { if (!iterator.hasNext()) { iterator = iterable.iterator(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 17.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EnumMultiset.java
*/ public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) { Iterator<E> iterator = elements.iterator(); checkArgument(iterator.hasNext(), "EnumMultiset constructor passed empty Iterable"); EnumMultiset<E> multiset = new EnumMultiset<>(iterator.next().getDeclaringClass()); Iterables.addAll(multiset, elements); return multiset; } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
return; } Set<Entry<K, V>> entrySet = map.entrySet(); Iterator<Entry<K, V>> iterator = entrySet.iterator(); if (supportsIteratorRemove) { int initialSize = map.size(); Entry<K, V> entry = iterator.next(); Entry<K, V> entryCopy = Helpers.mapEntry(entry.getKey(), entry.getValue()); iterator.remove(); assertEquals(initialSize - 1, map.size());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 45.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java
@CollectionSize.Require(absent = ZERO) public void testPutAbsentConcurrentWithEntrySetIteration() { try { Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator(); put(e3()); iterator.next(); fail("Expected ConcurrentModificationException"); } catch (ConcurrentModificationException expected) { // success } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 9.4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/FilePropertyContainer.java
return new FilePropertyContainer<T>(); } public void add(T property) { properties.add(property); changed = true; } @Override public Iterator<T> iterator() { if (changed) { for (T propertySpec : properties) { String propertyName = propertySpec.getPropertyName(); if (propertyName == null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 22 14:04:39 UTC 2024 - 2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeMultiset.java
} return (node == header || !range.contains(node.getElement())) ? null : node; } @Override Iterator<E> elementIterator() { return Multisets.elementIterator(entryIterator()); } @Override Iterator<Entry<E>> entryIterator() { return new Iterator<Entry<E>>() { @CheckForNull AvlNode<E> current = firstNode(); @CheckForNull Entry<E> prevEntry; @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 34.2K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/project/EmptyLifecycleBindingsInjector.java
@Nonnull public Optional<Lifecycle> lookup(String id) { return getDelegate().lookup(id); } @Override public Iterator<Lifecycle> iterator() { return getDelegate().iterator(); } protected LifecycleRegistry getDelegate() { return lifecycleRegistry; } }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed May 22 13:45:13 UTC 2024 - 5.5K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/project/EmptyLifecycleBindingsInjector.java
@Nonnull public Optional<Lifecycle> lookup(String id) { return getDelegate().lookup(id); } @Override public Iterator<Lifecycle> iterator() { return getDelegate().iterator(); } protected LifecycleRegistry getDelegate() { return lifecycleRegistry; } }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed May 22 13:45:13 UTC 2024 - 5.5K bytes - Viewed (0)