- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,228 for ipIterator (0.3 sec)
-
android/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() { try { Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator(); getMap().clear(); iterator.next(); fail("Expected ConcurrentModificationException");
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 3.9K bytes - Viewed (0) -
test/typeparam/issue50486.dir/goerror_fp.go
} return ret } func (r Iterator[T]) Map(f func(T) any) Iterator[any] { return MakeIterator(r.HasNext, func() any { return f(r.Next()) }) } func (r Iterator[T]) HasNext() bool { return r.IsHasNext() } func (r Iterator[T]) Next() T { return r.GetNext() } func MakeIterator[T any](has func() bool, next func() T) Iterator[T] { return Iterator[T]{ IsHasNext: has, GetNext: next, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 21:56:11 UTC 2022 - 1.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
@Override public Iterator<T> iterator() { if (iterable instanceof List) { final List<T> list = (List<T>) iterable; int toSkip = Math.min(list.size(), numberToSkip); return list.subList(toSkip, list.size()).iterator(); } final Iterator<T> iterator = iterable.iterator(); Iterators.advance(iterator, numberToSkip); /*
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 24 19:38:27 UTC 2024 - 42.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ListsTest.java
Iterator<String> iterator = list.iterator(); assertTrue(iterator.hasNext()); assertEquals("1", iterator.next()); assertTrue(iterator.hasNext()); assertEquals("2", iterator.next()); assertTrue(iterator.hasNext()); assertEquals("3", iterator.next()); assertTrue(iterator.hasNext()); assertEquals("4", iterator.next()); assertFalse(iterator.hasNext());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 17 16:33:44 UTC 2024 - 35.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ListsTest.java
Iterator<String> iterator = list.iterator(); assertTrue(iterator.hasNext()); assertEquals("1", iterator.next()); assertTrue(iterator.hasNext()); assertEquals("2", iterator.next()); assertTrue(iterator.hasNext()); assertEquals("3", iterator.next()); assertTrue(iterator.hasNext()); assertEquals("4", iterator.next()); assertFalse(iterator.hasNext());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 17 16:33:44 UTC 2024 - 35.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java
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/google/MultisetEntrySetTester.java
public void testEntrySet_iteratorRemovePropagates() { Iterator<Multiset.Entry<E>> iterator = getMultiset().entrySet().iterator(); assertTrue( "non-empty multiset.entrySet() iterator.hasNext() returned false", iterator.hasNext()); assertEquals( "multiset.entrySet() iterator.next() returned incorrect entry", Multisets.immutableEntry(e0(), 1), iterator.next()); assertFalse(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 9.6K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/internal/impl/PropertiesAsMapTest.java
assertNotNull(set); assertEquals(2, set.size()); Iterator<Entry<String, String>> iterator = set.iterator(); assertNotNull(iterator); assertTrue(iterator.hasNext()); assertTrue(iterator.hasNext()); Entry<String, String> entry = iterator.next(); assertNotNull(entry); entry = iterator.next(); assertNotNull(entry);
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sat Apr 15 17:24:20 UTC 2023 - 2.2K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultNamedDomainObjectListTest.groovy
iterator.add('d') then: iterator.next() == 'b' list == ['a', 'd', 'b', 'c'] } def "fires event when element added using ListIterator"() { given: Action<String> action = Mock() list.addAll(['a', 'b', 'c']) list.whenObjectAdded(action) when: def iterator = list.listIterator() iterator.next()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 01 08:21:31 UTC 2023 - 13K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingIterator.java
import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.Iterator; import org.checkerframework.checker.nullness.qual.Nullable; /** * An iterator which forwards all its method calls to another iterator. Subclasses should override * one or more methods to modify the behavior of the backing iterator as desired per the <a * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>. *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 29 19:42:21 UTC 2021 - 2.2K bytes - Viewed (0)