- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 581 for Iterator$ (0.1 sec)
-
android/guava/src/com/google/common/collect/PeekingIterator.java
* PeekingIterator}</a>. * * @author Mick Killianey * @since 2.0 */ @DoNotMock("Use Iterators.peekingIterator") @GwtCompatible @ElementTypesAreNonnullByDefault public interface PeekingIterator<E extends @Nullable Object> extends Iterator<E> { /** * Returns the next element in the iteration, without advancing the iteration. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 24 17:47:51 UTC 2022 - 2.5K 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) -
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) -
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/src/com/google/common/graph/UndirectedGraphConnections.java
return adjacentNodes(); } @Override public Set<N> successors() { return adjacentNodes(); } @Override public Iterator<EndpointPair<N>> incidentEdgeIterator(N thisNode) { return Iterators.transform( adjacentNodeValues.keySet().iterator(), (N incidentNode) -> EndpointPair.unordered(thisNode, incidentNode)); } @Override @CheckForNull public V value(N node) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 06 00:47:57 UTC 2021 - 3.3K 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)