- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,099 for _iterator2 (0.16 sec)
-
guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java
return standardToArray(array); } }; } private static <K, V extends @Nullable Object> Iterator<Entry<K, V>> transformEntries( Iterator<Entry<K, V>> entries) { return Iterators.transform(entries, UnmodifiableEntry::new); } private UnmodifiableEntry(java.util.Map.Entry<K, V> delegate) { this.delegate = checkNotNull(delegate);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sat Apr 22 01:15:23 UTC 2023 - 5.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractIterator.java
* ordinarily difficult to write iterators for. But using this class, one must implement only the * {@link #computeNext} method, and invoke the {@link #endOfData} method when appropriate. * * <p>Another example is an iterator that skips over null elements in a backing iterator. This could * be implemented as: * * <pre>{@code * public static Iterator<String> skipNulls(final Iterator<String> in) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Mar 18 02:04:10 UTC 2022 - 6.4K bytes - Viewed (0) -
platforms/core-configuration/input-tracking/src/main/java/org/gradle/internal/configuration/inputs/AccessTrackingSet.java
} @Override public void clear() { delegate.clear(); listener.onClear(); } @Override public Iterator<E> iterator() { reportAggregatingAccess(); return Iterators.transform(delegate().iterator(), factory::apply); } @Override public int size() { reportAggregatingAccess(); return delegate.size(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Nov 11 00:37:04 UTC 2023 - 5K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
final Iterator<Entry<K, Collection<V>>> keyIterator; @CheckForNull K key; @CheckForNull Collection<V> collection; Iterator<V> valueIterator; Itr() { keyIterator = map.entrySet().iterator(); key = null; collection = null; valueIterator = Iterators.emptyModifiableIterator(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 13 14:11:58 UTC 2023 - 48K bytes - Viewed (0) -
guava/src/com/google/common/collect/PeekingIterator.java
* PeekingIterator}</a>. * * @author Mick Killianey * @since 2.0 */ @DoNotMock("Use Iterators.peekingIterator") @GwtCompatible @ElementTypesAreNonnullByDefault public interface PeekingIterator<E extends @Nullable Object> extends Iterator<E> { /** * Returns the next element in the iteration, without advancing the iteration. *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jan 24 17:47:51 UTC 2022 - 2.5K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableCollection.java
final transient Collection<E> delegate; ForwardingImmutableCollection(Collection<E> delegate) { this.delegate = 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 23 18:43:40 UTC 2024 - 1.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/PeekingIterator.java
* PeekingIterator}</a>. * * @author Mick Killianey * @since 2.0 */ @DoNotMock("Use Iterators.peekingIterator") @GwtCompatible @ElementTypesAreNonnullByDefault public interface PeekingIterator<E extends @Nullable Object> extends Iterator<E> { /** * Returns the next element in the iteration, without advancing the iteration. *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jan 24 17:47:51 UTC 2022 - 2.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/TestUtil.java
* contains(). Verify that these sets are consistent with the elements of their iterator. */ @CanIgnoreReturnValue static <T> Set<T> sanityCheckSet(Set<T> set) { assertThat(set).hasSize(Iterators.size(set.iterator())); for (Object element : set) { assertThat(set).contains(element); } assertThat(set).doesNotContain(new Object());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 3.9K bytes - Viewed (0) -
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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 2.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/collections/AbstractIterationOrderRetainingElementSource.java
} private boolean removeByProvider(ProviderInternal<?> provider) { Iterator<Element<T>> iterator = inserted.iterator(); while (iterator.hasNext()) { Element<T> next = iterator.next(); if (!next.isRealized() && next.isProvidedBy(provider)) { modCount++; iterator.remove(); return true; } } return false;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 04 20:04:06 UTC 2024 - 13.6K bytes - Viewed (0)