- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 722 for Iterator (0.12 sec)
-
guava-testlib/src/com/google/common/collect/testing/DerivedTestIteratorGenerator.java
} @Override public TestSubjectGenerator<? extends Iterable<E>> getInnerGenerator() { return collectionGenerator; } @Override public Iterator<E> get() { return collectionGenerator.createTestSubject().iterator(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Sep 15 13:47:32 UTC 2016 - 1.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java
public void testRemoveIfSomeMatchesConcurrentWithIteration() { assertThrows( ConcurrentModificationException.class, () -> { Iterator<E> iterator = collection.iterator(); assertTrue(collection.removeIf(Predicate.isEqual(samples.e0()))); iterator.next(); }); } @CollectionFeature.Require(absent = SUPPORTS_REMOVE) @CollectionSize.Require(ZERO)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 4.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/Collections2.java
} @Override public boolean isEmpty() { return !Iterables.any(unfiltered, predicate); } @Override public Iterator<E> iterator() { return Iterators.filter(unfiltered.iterator(), predicate); } @Override public Spliterator<E> spliterator() { return CollectSpliterators.filter(unfiltered.spliterator(), predicate); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 23.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/PeekingIterator.java
import com.google.errorprone.annotations.CanIgnoreReturnValue; import com.google.errorprone.annotations.DoNotMock; import java.util.Iterator; import java.util.NoSuchElementException; import org.checkerframework.checker.nullness.qual.Nullable; /** * An iterator that supports a one-element lookahead while iterating. * * <p>See the Guava User Guide article on <a href=
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 24 17:47:51 UTC 2022 - 2.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/ShareEnumIterator.java
private final Iterator<FileEntry> delegate; private final ResourceFilter filter; private final SmbResource parent; private SmbResource next; /** * @param parent * @param delegate * @param filter * */ public ShareEnumIterator ( SmbResource parent, Iterator<FileEntry> delegate, ResourceFilter filter ) { this.parent = parent;
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 3.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/MultiIteratorTest.java
final List<String> list2 = asList("Baz"); @SuppressWarnings("unchecked") final Iterator<String> it = new MultiIterator<String>(list1.iterator(), list2.iterator()); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is("Foo")); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is("Bar"));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.6K bytes - Viewed (0) -
guava/src/com/google/common/graph/MultiEdgesConnecting.java
this.outEdgeToNode = checkNotNull(outEdgeToNode); this.targetNode = checkNotNull(targetNode); } @Override public UnmodifiableIterator<E> iterator() { Iterator<? extends Entry<E, ?>> entries = outEdgeToNode.entrySet().iterator(); return new AbstractIterator<E>() { @Override @CheckForNull protected E computeNext() { while (entries.hasNext()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 06 00:47:57 UTC 2021 - 2.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SynchronizedQueueTest.java
public E element() { assertTrue(Thread.holdsLock(mutex)); return delegate.element(); } @Override public Iterator<E> iterator() { // We explicitly don't lock for iterator() assertFalse(Thread.holdsLock(mutex)); return delegate.iterator(); } @Override public int size() { assertTrue(Thread.holdsLock(mutex)); return delegate.size(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Aug 19 20:50:58 UTC 2024 - 4.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java
public void testRemoveAllSomePresentConcurrentWithIteration() { assertThrows( ConcurrentModificationException.class, () -> { Iterator<E> iterator = collection.iterator(); assertTrue(collection.removeAll(MinimalCollection.of(e0(), e3()))); iterator.next(); }); } /** Trigger the {@code other.size() >= this.size()} case in {@link AbstractSet#removeAll}. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 7.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Streams.java
} /** * Returns a sequential {@link Stream} of the remaining contents of {@code iterator}. Do not use * {@code iterator} directly after passing it to this method. */ public static <T extends @Nullable Object> Stream<T> stream(Iterator<T> iterator) { return StreamSupport.stream(Spliterators.spliteratorUnknownSize(iterator, 0), false); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 37.4K bytes - Viewed (0)