/libcore/ojluni/src/main/java/java/util/stream/ |
D | StreamSupport.java | 107 public static <T> Stream<T> stream(Supplier<? extends Spliterator<T>> supplier, in stream() argument 110 Objects.requireNonNull(supplier); in stream() 111 return new ReferencePipeline.Head<>(supplier, in stream() 175 public static IntStream intStream(Supplier<? extends Spliterator.OfInt> supplier, in intStream() argument 178 return new IntPipeline.Head<>(supplier, in intStream() 243 public static LongStream longStream(Supplier<? extends Spliterator.OfLong> supplier, in longStream() argument 246 return new LongPipeline.Head<>(supplier, in longStream() 311 public static DoubleStream doubleStream(Supplier<? extends Spliterator.OfDouble> supplier, in doubleStream() argument 314 return new DoublePipeline.Head<>(supplier, in doubleStream()
|
D | Collector.java | 203 Supplier<A> supplier(); in supplier() method 260 public static<T, R> Collector<T, R, R> of(Supplier<R> supplier, in of() argument 264 Objects.requireNonNull(supplier); in of() 272 return new Collectors.CollectorImpl<>(supplier, accumulator, combiner, cs); in of() 291 public static<T, A, R> Collector<T, A, R> of(Supplier<A> supplier, in of() argument 296 Objects.requireNonNull(supplier); in of() 307 return new Collectors.CollectorImpl<>(supplier, accumulator, combiner, finisher, cs); in of()
|
D | ReduceOps.java | 157 Supplier<I> supplier = Objects.requireNonNull(collector).supplier(); 164 state = supplier.get(); 341 makeInt(Supplier<R> supplier, 344 Objects.requireNonNull(supplier); 351 state = supplier.get(); 477 makeLong(Supplier<R> supplier, 480 Objects.requireNonNull(supplier); 487 state = supplier.get(); 613 makeDouble(Supplier<R> supplier, 616 Objects.requireNonNull(supplier); [all …]
|
D | StreamSpliterators.java | 273 Supplier<Spliterator<P_IN>> supplier, 275 super(ph, supplier, parallel); 326 Supplier<Spliterator<P_IN>> supplier, in IntWrappingSpliterator() argument 328 super(ph, supplier, parallel); in IntWrappingSpliterator() 384 Supplier<Spliterator<P_IN>> supplier, in LongWrappingSpliterator() argument 386 super(ph, supplier, parallel); in LongWrappingSpliterator() 442 Supplier<Spliterator<P_IN>> supplier, in DoubleWrappingSpliterator() argument 444 super(ph, supplier, parallel); in DoubleWrappingSpliterator() 503 private final Supplier<? extends T_SPLITR> supplier; field in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator 507 DelegatingSpliterator(Supplier<? extends T_SPLITR> supplier) { in DelegatingSpliterator() argument [all …]
|
D | Collectors.java | 148 private final Supplier<A> supplier; field in CollectorImpl 154 CollectorImpl(Supplier<A> supplier, in CollectorImpl() argument 159 this.supplier = supplier; in CollectorImpl() 166 CollectorImpl(Supplier<A> supplier, in CollectorImpl() argument 170 this(supplier, accumulator, combiner, castingIdentity(), characteristics); in CollectorImpl() 179 public Supplier<A> supplier() { in supplier() method in CollectorImpl 180 return supplier; in supplier() 354 return new CollectorImpl<>(downstream.supplier(), 390 return new CollectorImpl<>(downstream.supplier(), 904 Supplier<A> downstreamSupplier = downstream.supplier(); [all …]
|
D | IntPipeline.java | 152 Supplier<Spliterator<P_IN>> supplier, in wrap() argument 154 return new StreamSpliterators.IntWrappingSpliterator<>(ph, supplier, isParallel); in wrap() 160 …public final Spliterator.OfInt lazySpliterator(Supplier<? extends Spliterator<Integer>> supplier) { in lazySpliterator() argument 161 … return new StreamSpliterators.DelegatingSpliterator.OfInt((Supplier<Spliterator.OfInt>) supplier); in lazySpliterator() 482 public final <R> R collect(Supplier<R> supplier, 489 return evaluate(ReduceOps.makeInt(supplier, accumulator, operator));
|
D | DoublePipeline.java | 149 Supplier<Spliterator<P_IN>> supplier, in wrap() argument 151 return new StreamSpliterators.DoubleWrappingSpliterator<>(ph, supplier, isParallel); in wrap() 157 …blic final Spliterator.OfDouble lazySpliterator(Supplier<? extends Spliterator<Double>> supplier) { in lazySpliterator() argument 158 …n new StreamSpliterators.DelegatingSpliterator.OfDouble((Supplier<Spliterator.OfDouble>) supplier); in lazySpliterator() 485 public final <R> R collect(Supplier<R> supplier, 492 return evaluate(ReduceOps.makeDouble(supplier, accumulator, operator));
|
D | LongPipeline.java | 150 Supplier<Spliterator<P_IN>> supplier, in wrap() argument 152 return new StreamSpliterators.LongWrappingSpliterator<>(ph, supplier, isParallel); in wrap() 158 … public final Spliterator.OfLong lazySpliterator(Supplier<? extends Spliterator<Long>> supplier) { in lazySpliterator() argument 159 …eturn new StreamSpliterators.DelegatingSpliterator.OfLong((Supplier<Spliterator.OfLong>) supplier); in lazySpliterator() 464 public final <R> R collect(Supplier<R> supplier, 471 return evaluate(ReduceOps.makeLong(supplier, accumulator, operator));
|
D | ReferencePipeline.java | 119 Supplier<Spliterator<P_IN>> supplier, in wrap() argument 121 return new StreamSpliterators.WrappingSpliterator<>(ph, supplier, isParallel); in wrap() 126 … public final Spliterator<P_OUT> lazySpliterator(Supplier<? extends Spliterator<P_OUT>> supplier) { in lazySpliterator() argument 127 return new StreamSpliterators.DelegatingSpliterator<>(supplier); in lazySpliterator() 512 container = collector.supplier().get(); 525 public final <R> R collect(Supplier<R> supplier, 528 return evaluate(ReduceOps.makeRef(supplier, accumulator, combiner));
|
D | AbstractPipeline.java | 597 Supplier<Spliterator<P_IN>> supplier, in wrap() argument 606 …ublic abstract Spliterator<E_OUT> lazySpliterator(Supplier<? extends Spliterator<E_OUT>> supplier); in lazySpliterator() argument
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | SpliteratorTest.java | 48 public void testSpliterator(String name, Supplier<Spliterator<Integer>> supplier) { in testSpliterator() argument 49 SpliteratorTestHelper.testSpliterator(supplier); in testSpliterator() 53 public void testIntSpliterator(String name, Supplier<Spliterator.OfInt> supplier) { in testIntSpliterator() argument 54 SpliteratorTestHelper.testIntSpliterator(supplier); in testIntSpliterator() 58 public void testLongSpliterator(String name, Supplier<Spliterator.OfLong> supplier) { in testLongSpliterator() argument 59 SpliteratorTestHelper.testLongSpliterator(supplier); in testLongSpliterator() 63 public void testDoubleSpliterator(String name, Supplier<Spliterator.OfDouble> supplier) { in testDoubleSpliterator() argument 64 SpliteratorTestHelper.testDoubleSpliterator(supplier); in testDoubleSpliterator()
|
D | StreamBuilderTest.java | 120 private void testStreamBuilder(int size, Function<Integer, Stream<Integer>> supplier) { in testStreamBuilder() argument 122 () -> supplier.apply(size)); in testStreamBuilder() 182 private void testIntStreamBuilder(int size, Function<Integer, IntStream> supplier) { in testIntStreamBuilder() argument 184 () -> supplier.apply(size)); in testIntStreamBuilder() 244 private void testLongStreamBuilder(int size, Function<Integer, LongStream> supplier) { in testLongStreamBuilder() argument 246 () -> supplier.apply(size)); in testLongStreamBuilder() 305 private void testDoubleStreamBuilder(int size, Function<Integer, DoubleStream> supplier) { in testDoubleStreamBuilder() argument 307 () -> supplier.apply(size)); in testDoubleStreamBuilder()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 59 public static void testSpliterator(Supplier<Spliterator<Integer>> supplier) { in testSpliterator() argument 60 testSpliterator(supplier, defaultContentAsserter()); in testSpliterator() 63 public static void testSpliterator(Supplier<Spliterator<Integer>> supplier, in testSpliterator() argument 65 testSpliterator(supplier, (Consumer<Integer> b) -> b, asserter); in testSpliterator() 68 public static void testIntSpliterator(Supplier<Spliterator.OfInt> supplier) { in testIntSpliterator() argument 69 testIntSpliterator(supplier, defaultContentAsserter()); in testIntSpliterator() 72 public static void testIntSpliterator(Supplier<Spliterator.OfInt> supplier, in testIntSpliterator() argument 92 testSpliterator(supplier, BoxingAdapter::new, asserter); in testIntSpliterator() 95 public static void testLongSpliterator(Supplier<Spliterator.OfLong> supplier) { in testLongSpliterator() argument 96 testLongSpliterator(supplier, defaultContentAsserter()); in testLongSpliterator() [all …]
|
D | TestData.java | 97 public static <T> OfRef<T> ofSupplier(String name, Supplier<Stream<T>> supplier) { in ofSupplier() argument 98 return new AbstractTestData.RefTestData<>(name, supplier, in ofSupplier() 127 public static OfInt ofIntSupplier(String name, Supplier<IntStream> supplier) { in ofIntSupplier() argument 128 return new AbstractTestData.IntTestData<>(name, supplier, in ofIntSupplier() 158 public static OfLong ofLongSupplier(String name, Supplier<LongStream> supplier) { in ofLongSupplier() argument 159 return new AbstractTestData.LongTestData<>(name, supplier, in ofLongSupplier() 189 public static OfDouble ofDoubleSupplier(String name, Supplier<DoubleStream> supplier) { in ofDoubleSupplier() argument 190 return new AbstractTestData.DoubleTestData<>(name, supplier, in ofDoubleSupplier()
|
D | StreamTestDataProvider.java | 179 static <T> Object[] streamDataDescr(String description, Supplier<Stream<T>> supplier) { in streamDataDescr() argument 180 return new Object[] { description, TestData.Factory.ofSupplier(description, supplier)}; in streamDataDescr()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 59 public static void testSpliterator(Supplier<Spliterator<Integer>> supplier) { in testSpliterator() argument 60 testSpliterator(supplier, defaultContentAsserter()); in testSpliterator() 63 public static void testSpliterator(Supplier<Spliterator<Integer>> supplier, in testSpliterator() argument 65 testSpliterator(supplier, (Consumer<Integer> b) -> b, asserter); in testSpliterator() 68 public static void testIntSpliterator(Supplier<Spliterator.OfInt> supplier) { in testIntSpliterator() argument 69 testIntSpliterator(supplier, defaultContentAsserter()); in testIntSpliterator() 72 public static void testIntSpliterator(Supplier<Spliterator.OfInt> supplier, in testIntSpliterator() argument 92 testSpliterator(supplier, BoxingAdapter::new, asserter); in testIntSpliterator() 95 public static void testLongSpliterator(Supplier<Spliterator.OfLong> supplier) { in testLongSpliterator() argument 96 testLongSpliterator(supplier, defaultContentAsserter()); in testLongSpliterator() [all …]
|
D | TestData.java | 96 public static <T> OfRef<T> ofSupplier(String name, Supplier<Stream<T>> supplier) { in ofSupplier() argument 97 return new AbstractTestData.RefTestData<>(name, supplier, in ofSupplier() 126 public static OfInt ofIntSupplier(String name, Supplier<IntStream> supplier) { in ofIntSupplier() argument 127 return new AbstractTestData.IntTestData<>(name, supplier, in ofIntSupplier() 157 public static OfLong ofLongSupplier(String name, Supplier<LongStream> supplier) { in ofLongSupplier() argument 158 return new AbstractTestData.LongTestData<>(name, supplier, in ofLongSupplier() 188 public static OfDouble ofDoubleSupplier(String name, Supplier<DoubleStream> supplier) { in ofDoubleSupplier() argument 189 return new AbstractTestData.DoubleTestData<>(name, supplier, in ofDoubleSupplier()
|
D | StreamTestDataProvider.java | 173 static <T> Object[] streamDataDescr(String description, Supplier<Stream<T>> supplier) { in streamDataDescr() argument 174 return new Object[] { description, TestData.Factory.ofSupplier(description, supplier)}; in streamDataDescr()
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | WeakCache.java | 121 Supplier<V> supplier = valuesMap.get(subKey); in get() local 125 if (supplier != null) { in get() 127 V value = supplier.get(); in get() 141 if (supplier == null) { in get() 142 supplier = valuesMap.putIfAbsent(subKey, factory); in get() 143 if (supplier == null) { in get() 145 supplier = factory; in get() 149 if (valuesMap.replace(subKey, supplier, factory)) { in get() 153 supplier = factory; in get() 156 supplier = valuesMap.get(subKey); in get() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | ThreadLocal.java | 46 java.util.function.Supplier<? extends S> supplier) { in withInitial() argument 97 SuppliedThreadLocal(java.util.function.Supplier<? extends T> supplier) { in SuppliedThreadLocal() argument 105 private final java.util.function.Supplier<? extends T> supplier; field in ThreadLocal.SuppliedThreadLocal 108 supplier = null;
|
/libcore/ojluni/src/main/java/java/lang/ |
D | ThreadLocal.java | 140 public static <S> ThreadLocal<S> withInitial(Supplier<? extends S> supplier) { in withInitial() argument 141 return new SuppliedThreadLocal<>(supplier); in withInitial() 276 private final Supplier<? extends T> supplier; field in ThreadLocal.SuppliedThreadLocal 278 SuppliedThreadLocal(Supplier<? extends T> supplier) { in SuppliedThreadLocal() argument 279 this.supplier = Objects.requireNonNull(supplier); in SuppliedThreadLocal() 284 return supplier.get(); in initialValue()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Objects.java | 318 public static <T> T requireNonNullElseGet(T obj, Supplier<? extends T> supplier) { in requireNonNullElseGet() argument 320 : requireNonNull(requireNonNull(supplier, "supplier").get(), "supplier.get()"); in requireNonNullElseGet()
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | ThreadLocal.annotated.java | 40 …hInitial(@libcore.util.NonNull java.util.function.Supplier<? extends S> supplier) { throw new Runt… in withInitial() argument
|
/libcore/ojluni/annotations/mmodule/java/util/concurrent/ |
D | CompletableFuture.annotated.java | 46 …current.CompletableFuture<U> supplyAsync(java.util.function.Supplier<U> supplier) { throw new Runt… in supplyAsync() argument 48 …current.CompletableFuture<U> supplyAsync(java.util.function.Supplier<U> supplier, java.util.concur… in supplyAsync() argument 172 …letableFuture<T> completeAsync(java.util.function.Supplier<? extends T> supplier, java.util.concur… in completeAsync() argument 174 …letableFuture<T> completeAsync(java.util.function.Supplier<? extends T> supplier) { throw new Runt… in completeAsync() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Objects.annotated.java | 60 ….NonNull java.util.function.Supplier<? extends @libcore.util.NonNull T> supplier) { throw new Runt… in requireNonNullElseGet() argument
|