- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 578 for iterators (0.04 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
} } /** * Verifies that an Iterator is unmodifiable. * * <p>This test only works with iterators that iterate over a finite set. */ public static void assertIteratorIsUnmodifiable(Iterator<?> iterator) { while (iterator.hasNext()) { iterator.next(); try { iterator.remove(); fail("Remove on unmodifiable iterator succeeded");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 14.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/UnmodifiableIterator.java
import com.google.errorprone.annotations.DoNotCall; import java.util.Iterator; import org.jspecify.annotations.Nullable; /** * An iterator that does not support {@link #remove}. * * <p>{@code UnmodifiableIterator} is used primarily in conjunction with implementations of {@link * ImmutableCollection}, such as {@link ImmutableList}. You can, however, convert an existing
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.7K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableSet.java
SingletonImmutableSet(E element) { this.element = checkNotNull(element); } @Override public int size() { return 1; } @Override public UnmodifiableIterator<E> iterator() { return Iterators.singletonIterator(element); } @Override public boolean contains(@Nullable Object object) { return element.equals(object); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 01 22:23:20 UTC 2025 - 1.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
@Override public @Nullable Object execute(Iterator<?> iterator) { iterator.remove(); return null; } }; private static final IteratorOperation NEXT_METHOD = new IteratorOperation() { @Override public @Nullable Object execute(Iterator<?> iterator) { return iterator.next(); } };
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 20.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
return set1.isEmpty() && set2.isEmpty(); } @Override public UnmodifiableIterator<E> iterator() { return new AbstractIterator<E>() { final Iterator<? extends E> itr1 = set1.iterator(); final Iterator<? extends E> itr2 = set2.iterator(); @Override protected @Nullable E computeNext() { if (itr1.hasNext()) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 81.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 7.4K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableSet.java
// TODO(cpovirk): are we over-wrapping? this.delegate = Collections.unmodifiableSet(delegate); } @Override public UnmodifiableIterator<E> iterator() { return Iterators.unmodifiableIterator(delegate.iterator()); } @Override public boolean contains(@Nullable Object object) { return object != null && delegate.contains(object); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/ListIteratorTester.java
* target iterators on demand. It also requires three additional constructor parameters: {@code * elementsToInsert}, the elements to be passed to {@code set()} and {@code add()} calls; {@code * features}, the features supported by the iterator; and {@code expectedElements}, the elements the * iterator should return in order. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/SingletonImmutableSet.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.collect; import static com.google.common.collect.Iterators.singletonIterator; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeBasedTable.java
} } /** Overridden column iterator to return columns values in globally sorted order. */ @Override Iterator<C> createColumnKeyIterator() { Comparator<? super C> comparator = columnComparator(); Iterator<C> merged = mergeSorted( transform(backingMap.values(), (Map<C, V> input) -> input.keySet().iterator()), comparator);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 18 15:05:43 UTC 2025 - 11.6K bytes - Viewed (0)