- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 17 for CollectSpliterators (0.2 seconds)
-
guava/src/com/google/common/collect/CollectSpliterators.java
import java.util.stream.IntStream; import org.jspecify.annotations.Nullable; /** Spliterator utilities for {@code common.collect} internals. */ @GwtCompatible final class CollectSpliterators { private CollectSpliterators() {} static <T extends @Nullable Object> Spliterator<T> indexed( int size, int extraCharacteristics, IntFunction<T> function) { return indexed(size, extraCharacteristics, function, null);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 19.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/CollectSpliterators.java
import org.jspecify.annotations.Nullable; /** Spliterator utilities for {@code common.collect} internals. */ @GwtCompatible @IgnoreJRERequirement // used only from APIs that work with Stream final class CollectSpliterators { private CollectSpliterators() {} static <T extends @Nullable Object> Spliterator<T> indexed( int size, int extraCharacteristics, IntFunction<T> function) { return indexed(size, extraCharacteristics, function, null);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 20.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/ArrayTable.java
return getEntry(index); } }; } @Override @GwtIncompatible // Spliterator Spliterator<Entry<K, V>> entrySpliterator() { return CollectSpliterators.indexed( size(), Spliterator.ORDERED | Spliterator.DISTINCT | Spliterator.NONNULL, this::getEntry); } // TODO(lowasser): consider an optimized values() implementation @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 26.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Streams.java
characteristics &= splitr.characteristics(); estimatedSize = LongMath.saturatedAdd(estimatedSize, splitr.estimateSize()); } return StreamSupport.stream( CollectSpliterators.flatMap( splitrsBuilder.build().spliterator(), splitr -> (Spliterator<T>) splitr, characteristics, estimatedSize), isParallel)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 36.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
@Override Spliterator<Entry<K, V>> entrySpliterator() { return CollectSpliterators.flatMap( map.entrySet().spliterator(), keyToValueCollectionEntry -> { K key = keyToValueCollectionEntry.getKey(); Collection<V> valueCollection = keyToValueCollectionEntry.getValue(); return CollectSpliterators.map( valueCollection.spliterator(),
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 48.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/StandardTable.java
} } } @Override @GwtIncompatible // Spliterator Spliterator<Cell<R, C, V>> cellSpliterator() { return CollectSpliterators.flatMap( backingMap.entrySet().spliterator(), (Entry<R, Map<C, V>> rowEntry) -> CollectSpliterators.map( rowEntry.getValue().entrySet().spliterator(), 0, (Entry<C, V> columnEntry) ->Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 30.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/Streams.java
characteristics &= splitr.characteristics(); estimatedSize = LongMath.saturatedAdd(estimatedSize, splitr.estimateSize()); } return StreamSupport.stream( CollectSpliterators.flatMap( splitrsBuilder.build().spliterator(), splitr -> (Spliterator<T>) splitr, characteristics, estimatedSize), isParallel)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 36.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableMultimap.java
Spliterator<Entry<K, V>> entrySpliterator() { return CollectSpliterators.flatMap( asMap().entrySet().spliterator(), keyToValueCollectionEntry -> { K key = keyToValueCollectionEntry.getKey(); Collection<V> valueCollection = keyToValueCollectionEntry.getValue(); return CollectSpliterators.map( valueCollection.spliterator(),
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 28.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/Collections2.java
return Iterators.filter(unfiltered.iterator(), predicate); } @Override @GwtIncompatible // Spliterator public Spliterator<E> spliterator() { return CollectSpliterators.filter(unfiltered.spliterator(), predicate); } @Override public void forEach(Consumer<? super E> action) { checkNotNull(action); unfiltered.forEach( (E e) -> {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 23K bytes - Click Count (0) -
guava/src/com/google/common/collect/LinkedHashMultimap.java
} @Override Iterator<V> valueIterator() { return Maps.valueIterator(entryIterator()); } @Override Spliterator<V> valueSpliterator() { return CollectSpliterators.map(entrySpliterator(), Spliterator.ORDERED, Entry::getValue); } /** * @serialData the expected values per key, the number of distinct keys, the number of entries, * and the entries in order
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 20K bytes - Click Count (0)