- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for unmodifiableIterator (0.06 sec)
-
guava/src/com/google/common/collect/Iterators.java
public static <T extends @Nullable Object> UnmodifiableIterator<T> unmodifiableIterator( Iterator<? extends T> iterator) { checkNotNull(iterator); if (iterator instanceof UnmodifiableIterator) { @SuppressWarnings("unchecked") // Since it's unmodifiable, the covariant cast is safe UnmodifiableIterator<T> result = (UnmodifiableIterator<T>) iterator; return result; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 16 12:42:11 UTC 2025 - 51.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
throw new UnsupportedOperationException(); } /** * Scope the return type to {@link UnmodifiableIterator} to ensure this is an unmodifiable view. * * @since 20.0 (present with return type {@link Iterator} since 2.0) */ @Override public abstract UnmodifiableIterator<E> iterator(); @Override @SuppressWarnings("EqualsHashCode") // same semantics
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 81.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
Iterator<String> mod = Lists.newArrayList("a", "b", "c").iterator(); UnmodifiableIterator<String> unmod = Iterators.unmodifiableIterator(mod); assertNotSame(mod, unmod); assertSame(unmod, Iterators.unmodifiableIterator(unmod)); assertSame(unmod, Iterators.unmodifiableIterator((Iterator<String>) unmod)); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 56.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMap.java
return super.entrySet(); } @Override ImmutableSet<Entry<K, V>> createEntrySet() { final class EntrySet extends ImmutableMapEntrySet<K, V> { @Override public UnmodifiableIterator<Entry<K, V>> iterator() { return asList().iterator(); } @Override ImmutableList<Entry<K, V>> createAsList() { return new ImmutableList<Entry<K, V>>() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 21:07:18 UTC 2025 - 52.9K bytes - Viewed (0)