- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 651 for iterators (0.1 sec)
-
guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
if (size > 0) { assertFalse(collection.isEmpty()); } else { assertTrue(collection.isEmpty()); } assertEquals(size, Iterables.size(collection)); assertEquals(size, Iterators.size(collection.iterator())); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 15K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableRangeSet.java
} return result.intValue(); } @Override public UnmodifiableIterator<C> iterator() { return new AbstractIterator<C>() { final Iterator<Range<C>> rangeItr = ranges.iterator(); Iterator<C> elemItr = emptyIterator(); @Override @CheckForNull protected C computeNext() { while (!elemItr.hasNext()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 27K bytes - Viewed (0) -
guava/src/com/google/common/collect/LinkedListMultimap.java
} } size--; } /** Removes all nodes for the specified key. */ private void removeAllNodes(@ParametricNullness K key) { Iterators.clear(new ValueForKeyIterator(key)); } /** An {@code Iterator} over all nodes. */ private class NodeIterator implements ListIterator<Entry<K, V>> { int nextIndex; @CheckForNull Node<K, V> next; @CheckForNull Node<K, V> current;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 13 14:11:58 UTC 2023 - 27.5K bytes - Viewed (0) -
guava/src/com/google/common/cache/Cache.java
* the map directly affect the cache. * * <p>Iterators from the returned map are at least <i>weakly consistent</i>: they are safe for * concurrent use, but if the cache is modified (including by eviction) after the iterator is * created, it is undefined which of the changes (if any) will be reflected in that iterator. */ ConcurrentMap<K, V> asMap(); /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Aug 07 02:38:22 UTC 2022 - 7.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/FilteredEntryMultimap.java
return AsMap.this; } @Override public Iterator<Entry<K, Collection<V>>> iterator() { return new AbstractIterator<Entry<K, Collection<V>>>() { final Iterator<Entry<K, Collection<V>>> backingIterator = unfiltered.asMap().entrySet().iterator(); @Override @CheckForNull
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractMultimap.java
checkNotNull(values); // make sure we only call values.iterator() once // and we only call get(key) if values is nonempty if (values instanceof Collection) { Collection<? extends V> valueCollection = (Collection<? extends V>) values; return !valueCollection.isEmpty() && get(key).addAll(valueCollection); } else { Iterator<? extends V> valueItr = values.iterator();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 21:08:00 UTC 2021 - 7.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FilteredEntryMultimap.java
return AsMap.this; } @Override public Iterator<Entry<K, Collection<V>>> iterator() { return new AbstractIterator<Entry<K, Collection<V>>>() { final Iterator<Entry<K, Collection<V>>> backingIterator = unfiltered.asMap().entrySet().iterator(); @Override @CheckForNull
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.1K bytes - Viewed (0) -
android/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.0
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 10.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
} public void testCopyOf_iterator_general() { Iterator<String> iterator = asList("a", "b", "a").iterator(); Multiset<String> multiset = ImmutableSortedMultiset.copyOf(iterator); assertEquals(HashMultiset.create(asList("a", "b", "a")), multiset); } public void testCopyOf_iteratorContainingNull() { Iterator<String> iterator = asList("a", null, "b").iterator();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
Iterator<String> iterator = asList("a", "b", "a").iterator(); Multiset<String> multiset = ImmutableMultiset.copyOf(iterator); assertEquals(HashMultiset.create(asList("a", "b", "a")), multiset); } public void testCopyOf_iteratorContainingNull() { Iterator<@Nullable String> iterator = Arrays.<@Nullable String>asList("a", null, "b").iterator(); assertThrows(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 24.9K bytes - Viewed (0)