- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 529 for Iterators (0.11 sec)
-
src/test/java/jcifs/smb/ShareEnumIteratorTest.java
SmbFile parent = newParent(); FileEntry invalid = entry(invalidName, SmbConstants.TYPE_SHARE); FileEntry valid = entry("ok", SmbConstants.TYPE_SHARE); Iterator<FileEntry> delegate = Arrays.asList(invalid, valid).iterator(); ResourceFilter f = useFilter ? filter : null; if (useFilter) { when(filter.accept(any())).thenReturn(true); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingIterator.java
import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.Iterator; import org.jspecify.annotations.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: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.1K 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 Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.6K 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(final SmbResource parent, final Iterator<FileEntry> delegate, final ResourceFilter filter) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/DummyProxy.java
for (Class<? super T> itf : allInterfaceClasses) { Iterator<Class<?>> iterator = interfaceClasses.iterator(); boolean addToSet = true; while (iterator.hasNext()) { Class<?> current = iterator.next(); if (current == itf || itf.isAssignableFrom(current)) { // Skip any super interface of the ones that are already included.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 22:10:29 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/CloseableIterator.java
*/ package jcifs; import java.util.Iterator; /** * An iterator that implements AutoCloseable to allow resource cleanup. * This interface combines Iterator functionality with automatic resource management. * * @param <T> the type of elements returned by this iterator * @author mbechler */ public interface CloseableIterator<T> extends Iterator<T>, AutoCloseable { /** * {@inheritDoc} *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java
@CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE) @CollectionSize.Require(absent = ZERO) public void testKeySetIteratorRemove() { int initialSize = getNumElements(); Iterator<K> iterator = getMap().keySet().iterator(); iterator.next(); iterator.remove(); assertEquals(initialSize - 1, getMap().size()); assertEquals(initialSize - 1, getMap().inverse().size()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.2K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 20:34:52 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java
if (object == null) { throw new NullPointerException(); } } } return super.containsAll(collection); } @Override public Iterator<E> iterator() { return asList(contents).iterator(); } @Override public @Nullable Object[] toArray() { @Nullable Object[] result = new @Nullable Object[contents.length];
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
import com.google.common.collect.TestExceptions.SomeUncheckedException; import com.google.common.testing.GcFinalization; import java.lang.ref.WeakReference; import java.util.Iterator; import java.util.NoSuchElementException; import junit.framework.TestCase; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Unit test for {@code AbstractIterator}. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7.8K bytes - Viewed (0)