- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 606 for BiIterator (0.46 seconds)
-
guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java
} catch (UnsupportedOperationException e) { return; } if (map.size() < 2 || !supportsPut) { return; } Iterator<Entry<K, V>> iterator = map.entrySet().iterator(); Entry<K, V> firstEntry = iterator.next(); Entry<K, V> secondEntry = iterator.next(); K key = secondEntry.getKey(); SortedMap<K, V> subMap = map.tailMap(key); V value = getValueNotInPopulatedMap();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 17 20:00:30 GMT 2024 - 3.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Iterables.java
@Override public Iterator<T> iterator() { if (iterable instanceof List) { List<T> list = (List<T>) iterable; int toSkip = Math.min(list.size(), numberToSkip); return list.subList(toSkip, list.size()).iterator(); } Iterator<T> iterator = iterable.iterator(); Iterators.advance(iterator, numberToSkip); /*Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 16 18:35:28 GMT 2025 - 43.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/LexicographicalOrdering.java
this.elementOrder = elementOrder; } @Override public int compare(Iterable<T> leftIterable, Iterable<T> rightIterable) { Iterator<T> left = leftIterable.iterator(); Iterator<T> right = rightIterable.iterator(); while (left.hasNext()) { if (!right.hasNext()) { return LEFT_IS_GREATER; // because it's longer }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 2.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/LexicographicalOrdering.java
this.elementOrder = elementOrder; } @Override public int compare(Iterable<T> leftIterable, Iterable<T> rightIterable) { Iterator<T> left = leftIterable.iterator(); Iterator<T> right = rightIterable.iterator(); while (left.hasNext()) { if (!right.hasNext()) { return LEFT_IS_GREATER; // because it's longer }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 2.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/ForwardingMultiset.java
} @Override public Iterator<E> iterator() { return Multisets.elementIterator(multiset().entrySet().iterator()); } } /** * A sensible definition of {@link #iterator} in terms of {@link #entrySet} and {@link * #remove(Object)}. If you override either of these methods, you may wish to override {@link * #iterator} to forward to this implementation. * * @since 7.0Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 10.3K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/IteratorEnumeration.java
*/ public IteratorEnumeration(final Iterator<T> iterator) { assertArgumentNotNull("iterator", iterator); this.iterator = iterator; } /** * Creates an {@link IteratorEnumeration}. * * @param iterable the iterable object (must not be {@literal null}) */ public IteratorEnumeration(final Iterable<T> iterable) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 1.8K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java
assertFalse(getMap().entrySet().iterator().hasNext()); } @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_REMOVE}) @CollectionSize.Require(SEVERAL) public void testClearConcurrentWithEntrySetIteration() { assertThrows( ConcurrentModificationException.class, () -> { Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator(); getMap().clear();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ForwardingSortedSet.java
SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this; Iterator<?> iterator = self.tailSet(object).iterator(); if (iterator.hasNext()) { Object ceiling = iterator.next(); if (unsafeCompare(comparator(), ceiling, object) == 0) { iterator.remove(); return true; } } } catch (ClassCastException | NullPointerException e) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 12 16:28:01 GMT 2025 - 5.7K bytes - Click Count (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)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jul 16 20:34:52 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAtIndexTester.java
public void testRemoveAtIndexConcurrentWithIteration() { assertThrows( ConcurrentModificationException.class, () -> { Iterator<E> iterator = collection.iterator(); getList().remove(getNumElements() / 2); iterator.next(); }); } @ListFeature.Require(SUPPORTS_REMOVE_WITH_INDEX) @CollectionSize.Require(absent = ZERO) public void testRemoveAtIndex_last() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 4K bytes - Click Count (0)