/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | SpliteratorTester.java | 56 final Spliterator<E> spliterator; field in SpliteratorTester.GeneralSpliterator 58 GeneralSpliterator(Spliterator<E> spliterator) { in GeneralSpliterator() argument 59 this.spliterator = checkNotNull(spliterator); in GeneralSpliterator() 69 return spliterator.characteristics(); in characteristics() 73 return spliterator.estimateSize(); in estimateSize() 77 return spliterator.getComparator(); in getComparator() 81 return spliterator.getExactSizeIfKnown(); in getExactSizeIfKnown() 85 return spliterator.hasCharacteristics(characteristics); in hasCharacteristics() 90 GeneralSpliteratorOfObject(Spliterator<E> spliterator) { in GeneralSpliteratorOfObject() argument 91 super(spliterator); in GeneralSpliteratorOfObject() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | CollectSpliteratorsTest.java | 37 Arrays.spliterator(new String[] {"a", "b", "c", "d", "e"}), Ascii::toUpperCase)) in testMap() 45 Arrays.spliterator(new String[] {"abc", "", "de", "f", "g", ""}), in testFlatMap() 46 (String str) -> Lists.charactersOf(str).spliterator(), in testFlatMap() 56 Arrays.spliterator(new String[] {"abc", "", "de", "f", "g", ""}), in testFlatMap_nullStream() 57 (String str) -> str.isEmpty() ? null : Lists.charactersOf(str).spliterator(), in testFlatMap_nullStream() 67 Arrays.spliterator(new Integer[] {1, 0, 1, 2, 3}), in testFlatMapToInt_nullStream() 68 (Integer i) -> i == 0 ? null : IntStream.of(i).spliterator(), in testFlatMapToInt_nullStream() 78 Arrays.spliterator(new Long[] {1L, 0L, 1L, 2L, 3L}), in testFlatMapToLong_nullStream() 79 (Long i) -> i == 0L ? null : LongStream.of(i).spliterator(), in testFlatMapToLong_nullStream() 89 Arrays.spliterator(new Double[] {1.0, 0.0, 1.0, 2.0, 3.0}), in testFlatMapToDouble_nullStream() [all …]
|
D | StreamsTest.java | 85 .spliterator()) in testConcat_refStream() 204 .spliterator()) in testMapWithIndex() 211 .spliterator()) in testMapWithIndex() 249 () -> Streams.mapWithIndex(IntStream.of(0, 1, 2), (x, i) -> x + ":" + i).spliterator()) in testMapWithIndex_intStream() 274 () -> Streams.mapWithIndex(LongStream.of(0, 1, 2), (x, i) -> x + ":" + i).spliterator()) in testMapWithIndex_longStream() 301 Streams.mapWithIndex(DoubleStream.of(0, 1, 2), (x, i) -> x + ":" + i).spliterator()) in testMapWithIndex_doubleStream()
|
/external/guava/guava/src/com/google/common/collect/ |
D | Streams.java | 64 : StreamSupport.stream(iterable.spliterator(), false); in stream() 166 Spliterator<? extends T> splitr = stream.spliterator(); in concat() 173 splitrsBuilder.build().spliterator(), in concat() 198 Spliterator.OfInt splitr = stream.spliterator(); in concat() 205 splitrsBuilder.build().spliterator(), in concat() 230 Spliterator.OfLong splitr = stream.spliterator(); in concat() 237 splitrsBuilder.build().spliterator(), in concat() 262 Spliterator.OfDouble splitr = stream.spliterator(); in concat() 269 splitrsBuilder.build().spliterator(), in concat() 309 Spliterator<A> splitrA = streamA.spliterator(); in zip() [all …]
|
D | CompactLinkedHashMap.java | 221 public Spliterator<Entry<K, V>> spliterator() { in createEntrySet() method in CompactLinkedHashMap.EntrySetImpl 222 return Spliterators.spliterator(this, Spliterator.ORDERED | Spliterator.DISTINCT); in createEntrySet() 243 public Spliterator<K> spliterator() { in createKeySet() method in CompactLinkedHashMap.KeySetImpl 244 return Spliterators.spliterator(this, Spliterator.ORDERED | Spliterator.DISTINCT); in createKeySet() 265 public Spliterator<V> spliterator() { in createValues() method in CompactLinkedHashMap.ValuesImpl 266 return Spliterators.spliterator(this, Spliterator.ORDERED); in createValues()
|
D | Iterables.java | 111 public Spliterator<T> spliterator() { in spliterator() method in Iterables.UnmodifiableIterable 112 return (Spliterator<T>) iterable.spliterator(); in spliterator() 370 public Spliterator<T> spliterator() { in cycle() method in Iterables 371 return Stream.generate(() -> iterable).flatMap(Streams::stream).spliterator(); in cycle() 574 public Spliterator<T> spliterator() { 575 return CollectSpliterators.filter(unfiltered.spliterator(), retainIfTrue); 708 public Spliterator<T> spliterator() { 709 return CollectSpliterators.map(fromIterable.spliterator(), function); 896 public Spliterator<T> spliterator() { 900 return list.subList(toSkip, list.size()).spliterator(); [all …]
|
D | SingletonImmutableList.java | 53 public Spliterator<E> spliterator() { in spliterator() method in SingletonImmutableList 54 return Collections.singleton(element).spliterator(); in spliterator()
|
D | RegularImmutableList.java | 87 public Spliterator<E> spliterator() { in spliterator() method in RegularImmutableList 88 return Spliterators.spliterator(array, SPLITERATOR_CHARACTERISTICS); in spliterator()
|
D | AbstractMultimap.java | 133 public Spliterator<Entry<K, V>> spliterator() { in spliterator() method in AbstractMultimap.Entries 154 return Spliterators.spliterator( in entrySpliterator() 196 public Spliterator<V> spliterator() { in spliterator() method in AbstractMultimap.Values 221 return Spliterators.spliterator(valueIterator(), size(), 0); in valueSpliterator()
|
D | RegularImmutableSet.java | 78 public Spliterator<E> spliterator() { in spliterator() method in RegularImmutableSet 79 return Spliterators.spliterator(elements, SPLITERATOR_CHARACTERISTICS); in spliterator()
|
D | CompactHashMap.java | 670 public Spliterator<K> spliterator() { in spliterator() method in CompactHashMap.KeySetView 672 return Spliterators.spliterator(new Object[0], Spliterator.DISTINCT | Spliterator.ORDERED); in spliterator() 676 ? delegate.keySet().spliterator() in spliterator() 677 : Spliterators.spliterator(keys, 0, size, Spliterator.DISTINCT | Spliterator.ORDERED); in spliterator() 747 public Spliterator<Entry<K, V>> spliterator() { 750 ? delegate.entrySet().spliterator() 926 public Spliterator<V> spliterator() { 928 return Spliterators.spliterator(new Object[0], Spliterator.ORDERED); 932 ? delegate.values().spliterator() 933 : Spliterators.spliterator(values, 0, size, Spliterator.ORDERED);
|
D | ImmutableMapValues.java | 66 public Spliterator<V> spliterator() { in spliterator() method 67 return CollectSpliterators.map(map.entrySet().spliterator(), Entry::getValue); in spliterator()
|
D | ImmutableEnumSet.java | 72 public Spliterator<E> spliterator() { in spliterator() method in ImmutableEnumSet 73 return delegate.spliterator(); in spliterator()
|
D | ImmutableMapEntrySet.java | 65 public Spliterator<Entry<K, V>> spliterator() { in spliterator() method in ImmutableMapEntrySet.RegularEntrySet 66 return entries.spliterator(); in spliterator()
|
D | ImmutableEnumMap.java | 63 return delegate.keySet().spliterator(); in keySpliterator() 99 return CollectSpliterators.map(delegate.entrySet().spliterator(), Maps::unmodifiableEntry); in entrySpliterator()
|
D | ImmutableCollection.java | 182 public Spliterator<E> spliterator() { in spliterator() method in ImmutableCollection 183 return Spliterators.spliterator(this, SPLITERATOR_CHARACTERISTICS); in spliterator()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | CollectionSpliteratorTester.java | 49 SpliteratorTester.of(collection::spliterator).expect(getSampleElements()); in testSpliteratorUnknownOrder() 56 SpliteratorTester.of(collection::spliterator).expect(getOrderedElements()).inOrder(); in testSpliteratorKnownOrder() 65 assertFalse(collection.spliterator().hasCharacteristics(Spliterator.NONNULL)); in testSpliteratorNullable() 73 assertFalse(collection.spliterator().hasCharacteristics(Spliterator.IMMUTABLE)); in testSpliteratorNotImmutable_CollectionAllowsAdd() 81 assertFalse(collection.spliterator().hasCharacteristics(Spliterator.IMMUTABLE)); in testSpliteratorNotImmutable_CollectionAllowsRemove()
|
/external/guava/guava/src/com/google/common/primitives/ |
D | ImmutableDoubleArray.java | 274 Spliterator.OfDouble spliterator = stream.spliterator(); in addAll() local 275 long size = spliterator.getExactSizeIfKnown(); in addAll() 279 spliterator.forEachRemaining((DoubleConsumer) this::add); in addAll() 446 private Spliterator.OfDouble spliterator() { in spliterator() method in ImmutableDoubleArray 447 return Spliterators.spliterator(array, start, end, Spliterator.IMMUTABLE | Spliterator.ORDERED); in spliterator() 507 public Spliterator<Double> spliterator() { in spliterator() method in ImmutableDoubleArray.AsList 508 return parent.spliterator(); in spliterator()
|
D | ImmutableIntArray.java | 271 Spliterator.OfInt spliterator = stream.spliterator(); in addAll() local 272 long size = spliterator.getExactSizeIfKnown(); in addAll() 276 spliterator.forEachRemaining((IntConsumer) this::add); in addAll() 441 private Spliterator.OfInt spliterator() { in spliterator() method in ImmutableIntArray 442 return Spliterators.spliterator(array, start, end, Spliterator.IMMUTABLE | Spliterator.ORDERED); in spliterator() 502 public Spliterator<Integer> spliterator() { in spliterator() method in ImmutableIntArray.AsList 503 return parent.spliterator(); in spliterator()
|
D | ImmutableLongArray.java | 273 Spliterator.OfLong spliterator = stream.spliterator(); in addAll() local 274 long size = spliterator.getExactSizeIfKnown(); in addAll() 278 spliterator.forEachRemaining((LongConsumer) this::add); in addAll() 443 private Spliterator.OfLong spliterator() { in spliterator() method in ImmutableLongArray 444 return Spliterators.spliterator(array, start, end, Spliterator.IMMUTABLE | Spliterator.ORDERED); in spliterator() 504 public Spliterator<Long> spliterator() { in spliterator() method in ImmutableLongArray.AsList 505 return parent.spliterator(); in spliterator()
|
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/flow/scrabble/ |
D | IterableSpliterator.kt | 11 …public fun <T> of(spliterator: Spliterator<T>): Iterable<T> = Iterable { Spliterators.iterator(spl… in <lambda>()
|
D | FlowPlaysScrabbleBase.kt | 37 IterableSpliterator.of(string.chars().boxed().spliterator()).asFlow() in <lambda>() 80 IterableSpliterator.of(word.chars().boxed().limit(3).spliterator()).asFlow() in <lambda>() 84 IterableSpliterator.of(word.chars().boxed().skip(3).spliterator()).asFlow() in <lambda>()
|
D | ReactorPlaysScrabble.kt | 34 Flux.fromIterable(IterableSpliterator.of(string.chars().boxed().spliterator())) in <lambda>() 79 word.chars().boxed().limit(3).spliterator() in <lambda>() 84 word.chars().boxed().skip(3).spliterator() in <lambda>()
|
/external/dagger2/java/dagger/internal/codegen/javapoet/ |
D | CodeBlocks.java | 57 return stream(codeBlocks.spliterator(), false).collect(toParametersCodeBlock()); in makeParametersCodeBlock() 66 return stream(parameters.spliterator(), false) in parameterNames() 76 return stream(codeBlocks.spliterator(), false).collect(toConcatenatedCodeBlock()); in concat()
|
/external/kotlinx.coroutines/benchmarks/src/jmh/java/benchmarks/flow/scrabble/ |
D | RxJava2PlaysScrabble.java | 51 … string -> Flowable.fromIterable(IterableSpliterator.of(string.chars().boxed().spliterator())) ; in play() 103 …ord -> Flowable.fromIterable(IterableSpliterator.of(word.chars().boxed().limit(3).spliterator())) ; in play() 105 …word -> Flowable.fromIterable(IterableSpliterator.of(word.chars().boxed().skip(3).spliterator())) ; in play()
|