- Sort Score
- Num 10 results
- Language All
Results 251 - 260 of 732 for BiIterator (0.1 seconds)
-
guava-tests/test/com/google/common/collect/HashBiMapTest.java
Set<Entry<Integer, String>> entries = map.entrySet(); Iterator<Entry<Integer, String>> iterator = entries.iterator(); Entry<Integer, String> entry = iterator.next(); entry.setValue("two"); // changes the iterator's current entry value assertThat(map.get(1)).isEqualTo("two"); assertEquals(Integer.valueOf(1), map.inverse().get("two")); iterator.remove(); // removes the updated entry assertTrue(map.isEmpty());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 8.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/ConcurrentHashMultiset.java
} @Override Iterator<Entry<E>> entryIterator() { // AbstractIterator makes this fairly clean, but it doesn't support remove(). To support // remove(), we create an AbstractIterator, and then use ForwardingIterator to delegate to it. Iterator<Entry<E>> readOnlyIterator = new AbstractIterator<Entry<E>>() { private final Iterator<Map.Entry<E, AtomicInteger>> mapEntries =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 22.3K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/EmptyIterator.java
*/ package org.codelibs.core.collection; import java.util.Iterator; import org.codelibs.core.exception.ClUnsupportedOperationException; /** * An empty {@link Iterator}. * * @author higa * @param <T> the element type */ public class EmptyIterator<T> implements Iterator<T> { /** * Creates an {@link EmptyIterator}. */ public EmptyIterator() {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 1.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ForwardingSortedMultisetTest.java
} @Override public SortedMultiset<E> descendingMultiset() { return new StandardDescendingMultiset() { @Override Iterator<Entry<E>> entryIterator() { return backingMultiset.descendingMultiset().entrySet().iterator(); } }; } @Override public NavigableSet<E> elementSet() { return new StandardElementSet(); } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 6.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
expectedModCount = backingMap.modCount; } } @Override final Iterator<E> elementIterator() { return new Itr<E>() { @Override @ParametricNullness E result(int entryIndex) { return backingMap.getKey(entryIndex); } }; } @Override final Iterator<Entry<E>> entryIterator() { return new Itr<Entry<E>>() { @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 05 23:15:58 GMT 2025 - 7.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractSequentialIterator.java
import org.jspecify.annotations.Nullable; /** * This class provides a skeletal implementation of the {@code Iterator} interface for sequences * whose next element can always be derived from the previous element. Null elements are not * supported, nor is the {@link #remove()} method. * * <p>Example: * * {@snippet : * Iterator<Integer> powersOfTwo = * new AbstractSequentialIterator<Integer>(1) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 2.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
set("b", "b1", "b2") val iterator = cache.snapshots() cache.remove("b") iterator.next().use { assertThat(it.key()).isEqualTo("a") } assertThat(iterator.hasNext()).isFalse() } @Test fun iteratorRemove() { set("a", "a1", "a2") val iterator = cache.snapshots() val a = iterator.next() a.close() iterator.remove()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 59.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestIteratorGenerator.java
package com.google.common.collect.testing; import com.google.common.annotations.GwtCompatible; import java.util.Iterator; /** * Creates iterators to be tested. * * @param <E> the element type of the iterator. * @author George van den Driessche */ @GwtCompatible public interface TestIteratorGenerator<E> { Iterator<E> get();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 938 bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/TestIteratorGenerator.java
package com.google.common.collect.testing; import com.google.common.annotations.GwtCompatible; import java.util.Iterator; /** * Creates iterators to be tested. * * @param <E> the element type of the iterator. * @author George van den Driessche */ @GwtCompatible public interface TestIteratorGenerator<E> { Iterator<E> get();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 938 bytes - Click Count (0) -
android/guava/src/com/google/common/eventbus/SubscriberRegistry.java
} /** * Gets an iterator representing an immutable snapshot of all subscribers to the given event at * the time this method is called. */ Iterator<Subscriber> getSubscribers(Object event) { ImmutableSet<Class<?>> eventTypes = flattenHierarchy(event.getClass()); List<Iterator<Subscriber>> subscriberIterators =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 10.8K bytes - Click Count (0)