/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
DoubleNodeTest.java | 90 private Node.OfDouble fill(double[] array, Node.Builder.OfDouble nb) { 98 private Node.OfDouble degenerateTree(PrimitiveIterator.OfDouble it) { 105 return new Nodes.ConcNode.OfDouble(Nodes.node(new double[] {i}), degenerateTree(it)); 112 private Node.OfDouble tree(List<Double> l, Function<List<Double>, Node.OfDouble> m) { 117 return new Nodes.ConcNode.OfDouble( 124 public void testAsArray(double[] array, Node.OfDouble n) { 129 public void testFlattenAsArray(double[] array, Node.OfDouble n) [all...] |
SpinedBufferTest.java | 304 SpinedBuffer.OfDouble sb = new SpinedBuffer.OfDouble(); 314 public void testDoubleSpliterator(double[] array, SpinedBuffer.OfDouble sb) { 322 public void testLongLastSplit(double[] array, SpinedBuffer.OfDouble sb) { 323 Spliterator.OfDouble spliterator = sb.spliterator(); 324 Spliterator.OfDouble split = spliterator.trySplit(); 347 SpinedBuffer.OfDouble sb = new SpinedBuffer.OfDouble(); 352 PrimitiveIterator.OfDouble it = sb.iterator();
|
SliceSpliteratorTest.java | 116 Spliterator.OfDouble s = Arrays.spliterator(source.stream().mapToDouble(i->i).toArray()); 118 return new StreamSpliterators.SliceSpliterator.OfDouble(s, skip, limit); 175 Spliterator.OfDouble s = Arrays.spliterator(LongStream.range(0, SIZE).asDoubleStream().toArray()); 177 return new StreamSpliterators.UnorderedSliceSpliterator.OfDouble(s, skip, limit);
|
/libcore/ojluni/src/main/java/java/util/stream/ |
DoubleStream.java | 711 PrimitiveIterator.OfDouble iterator(); 714 Spliterator.OfDouble spliterator(); 775 final PrimitiveIterator.OfDouble iterator = new PrimitiveIterator.OfDouble() { [all...] |
Nodes.java | 70 private static final Node.OfDouble EMPTY_DOUBLE_NODE = new EmptyNode.OfDouble(); 122 return (Node<T>) new ConcNode.OfDouble((Node.OfDouble) left, (Node.OfDouble) right); 259 * Produces a {@link Node.OfDouble} describing a double[] array. 266 static Node.OfDouble node(final double[] array) { 271 * Produces a {@link Node.Builder.OfDouble}. 276 * @return a {@code Node.Builder.OfDouble} 278 static Node.Builder.OfDouble doubleBuilder(long exactSizeIfKnown) [all...] |
StreamSpliterators.java | 438 extends AbstractWrappingSpliterator<P_IN, Double, SpinedBuffer.OfDouble> 439 implements Spliterator.OfDouble { 460 SpinedBuffer.OfDouble b = new SpinedBuffer.OfDouble(); 462 bufferSink = ph.wrapSink((Sink.OfDouble) b::accept); 467 public Spliterator.OfDouble trySplit() { 468 return (Spliterator.OfDouble) super.trySplit(); 486 ph.wrapAndCopyInto((Sink.OfDouble) consumer::accept, spliterator); 595 static final class OfDouble 596 extends OfPrimitive<Double, DoubleConsumer, Spliterator.OfDouble> [all...] |
Node.java | 218 interface OfDouble extends Node.Builder<Double>, Sink.OfDouble { 220 Node.OfDouble build(); 460 interface OfDouble extends OfPrimitive<Double, DoubleConsumer, double[], Spliterator.OfDouble, OfDouble> { 495 Tripwire.trip(getClass(), "{0} calling Node.OfDouble.copyInto(Double[], int)"); 504 default Node.OfDouble truncate(long from, long to, IntFunction<Double[]> generator) { 508 Spliterator.OfDouble spliterator = spliterator(); 509 Node.Builder.OfDouble nodeBuilder = Nodes.doubleBuilder(size) [all...] |
StreamSupport.java | 253 * {@code Spliterator.OfDouble}. 266 * @param spliterator A {@code Spliterator.OfDouble} describing the stream elements 272 public static DoubleStream doubleStream(Spliterator.OfDouble spliterator, 281 * {@code Supplier} of {@code Spliterator.OfDouble}. 290 * more efficient to use {@link #doubleStream(java.util.Spliterator.OfDouble, boolean)} 300 * @param supplier A {@code Supplier} of a {@code Spliterator.OfDouble} 302 * {@code Spliterator.OfDouble}. The characteristics must be equal to 309 * @see #doubleStream(java.util.Spliterator.OfDouble, boolean) 311 public static DoubleStream doubleStream(Supplier<? extends Spliterator.OfDouble> supplier,
|
DoublePipeline.java | 110 * Adapt a {@code Spliterator<Double>} to a {@code Spliterator.OfDouble}. 113 * The implementation attempts to cast to a Spliterator.OfDouble, and throws 116 private static Spliterator.OfDouble adapt(Spliterator<Double> s) { 117 if (s instanceof Spliterator.OfDouble) { 118 return (Spliterator.OfDouble) s; 152 public final Spliterator.OfDouble lazySpliterator(Supplier<? extends Spliterator<Double>> supplier) { 153 return new StreamSpliterators.DelegatingSpliterator.OfDouble((Supplier<Spliterator.OfDouble>) supplier); 158 Spliterator.OfDouble spl = adapt(spliterator); 172 public final PrimitiveIterator.OfDouble iterator() [all...] |
Sink.java | 224 interface OfDouble extends Sink<Double>, DoubleConsumer { 231 Tripwire.trip(getClass(), "{0} calling Sink.OfDouble.accept(Double)"); 337 * {@code Sink} of unknown input shape and produces a {@code Sink.OfDouble}. 341 static abstract class ChainedDouble<E_OUT> implements Sink.OfDouble {
|
SliceOps.java | 93 .SliceSpliterator.OfDouble((Spliterator.OfDouble) s, skip, sliceFence); 455 Spliterator.OfDouble unorderedSkipLimitSpliterator( 456 Spliterator.OfDouble s, long skip, long limit, long sizeIfKnown) { 463 return new StreamSpliterators.UnorderedSliceSpliterator.OfDouble(s, skip, limit); 471 return new StreamSpliterators.SliceSpliterator.OfDouble( 472 (Spliterator.OfDouble) helper.wrapSpliterator(spliterator), 477 (Spliterator.OfDouble) helper.wrapSpliterator(spliterator), 500 Spliterator.OfDouble s = unorderedSkipLimitSpliterator( 501 (Spliterator.OfDouble) helper.wrapSpliterator(spliterator) [all...] |
Streams.java | 608 extends AbstractStreamBuilderImpl<Double, Spliterator.OfDouble> 609 implements DoubleStream.Builder, Spliterator.OfDouble { 616 SpinedBuffer.OfDouble buffer; 643 buffer = new SpinedBuffer.OfDouble(); 831 static class OfDouble 832 extends ConcatSpliterator.OfPrimitive<Double, DoubleConsumer, Spliterator.OfDouble> 833 implements Spliterator.OfDouble { 834 OfDouble(Spliterator.OfDouble aSpliterator, Spliterator.OfDouble bSpliterator) [all...] |
SortedOps.java | 93 return new OfDouble(upstream); 245 private static final class OfDouble extends DoublePipeline.StatefulOp<Double> { 246 OfDouble(AbstractPipeline<?, Double, ?> upstream) { 271 Node.OfDouble n = (Node.OfDouble) helper.evaluate(spliterator, true, generator); 665 private SpinedBuffer.OfDouble b; 675 b = (size > 0) ? new SpinedBuffer.OfDouble((int) size) : new SpinedBuffer.OfDouble();
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
DoubleStreamTestDataProvider.java | 89 SpinedBuffer.OfDouble isl = new SpinedBuffer.OfDouble(); 105 SpinedBuffer.OfDouble isl = new SpinedBuffer.OfDouble(); 129 static <T> Object[] splitDescr(String description, Supplier<Spliterator.OfDouble> s) {
|
TestData.java | 74 public interface OfDouble extends TestData<Double, DoubleStream> { } 175 public static <T> OfDouble ofArray(String name, double[] array) { 180 public static OfDouble ofSpinedBuffer(String name, SpinedBuffer.OfDouble buffer) { 184 SpinedBuffer.OfDouble::spliterator, 188 public static OfDouble ofDoubleSupplier(String name, Supplier<DoubleStream> supplier) { 196 public static OfDouble ofNode(String name, Node.OfDouble node) { 201 Node.OfDouble::spliterator, 331 extends AbstractTestData<Double, DoubleStream, I, Spliterator.OfDouble> [all...] |
CollectorOps.java | 107 public static class OfDouble extends TestParallelSizedOp<Double> { 108 public OfDouble() {
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
DoubleStreamTestDataProvider.java | 90 SpinedBuffer.OfDouble isl = new SpinedBuffer.OfDouble(); 106 SpinedBuffer.OfDouble isl = new SpinedBuffer.OfDouble(); 130 static <T> Object[] splitDescr(String description, Supplier<Spliterator.OfDouble> s) {
|
TestData.java | 75 public interface OfDouble extends TestData<Double, DoubleStream> { } 176 public static <T> OfDouble ofArray(String name, double[] array) { 181 public static OfDouble ofSpinedBuffer(String name, SpinedBuffer.OfDouble buffer) { 185 SpinedBuffer.OfDouble::spliterator, 189 public static OfDouble ofDoubleSupplier(String name, Supplier<DoubleStream> supplier) { 197 public static OfDouble ofNode(String name, Node.OfDouble node) { 202 Node.OfDouble::spliterator, 332 extends AbstractTestData<Double, DoubleStream, I, Spliterator.OfDouble> [all...] |
CollectorOps.java | 108 public static class OfDouble extends TestParallelSizedOp<Double> { 109 public OfDouble() {
|
/libcore/ojluni/src/main/java/java/util/ |
Spliterators.java | 36 * {@link Spliterator.OfDouble}. 99 * Creates an empty {@code Spliterator.OfDouble} 107 public static Spliterator.OfDouble emptyDoubleSpliterator() { 111 private static final Spliterator.OfDouble EMPTY_DOUBLE_SPLITERATOR = 112 new EmptySpliterator.OfDouble(); 310 * Creates a {@code Spliterator.OfDouble} covering the elements of a given array, 332 public static Spliterator.OfDouble spliterator(double[] array, 338 * Creates a {@code Spliterator.OfDouble} covering a range of elements of a 369 public static Spliterator.OfDouble spliterator(double[] array, int fromIndex, int toIndex, 596 * Creates a {@code Spliterator.OfDouble} using a give [all...] |
Spliterator.java | 108 * {@link OfInt int}, {@link OfLong long}, and {@link OfDouble double} values. 596 * @see Spliterator.OfDouble [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
SpliteratorsTest.java | 84 Spliterator.OfDouble empty = Spliterators.emptyDoubleSpliterator(); 276 Spliterator.OfDouble sp = Spliterators.spliterator(elements, 2, 6, 0); 327 Spliterator.OfDouble doubleSp = Spliterators.spliterator(elements, 0); 340 Spliterator.OfDouble split1 = doubleSp.trySplit(); 346 Spliterator.OfDouble split2 = split1.trySplit(); 415 Spliterator.OfDouble doubleSp = Spliterators.spliterator(doubleElements, 0); 559 private static class CannedDoublePrimitiveIterator implements PrimitiveIterator.OfDouble { 725 PrimitiveIterator.OfDouble elements = new CannedDoublePrimitiveIterator(data); 726 Spliterator.OfDouble doubleSp = Spliterators.spliterator(elements, 16 /* size */, 0); 739 Spliterator.OfDouble split1 = doubleSp.trySplit() [all...] |
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
PrimitiveAverageOpTest.java | 53 public void testOps(String name, TestData.OfDouble data) {
|
SpliteratorTest.java | 63 public void testDoubleSpliterator(String name, Supplier<Spliterator.OfDouble> supplier) {
|
StreamSpliteratorTest.java | 200 private static class OfDouble extends ProxyNoExactSizeSpliterator<Double> 201 implements Spliterator.OfDouble { 202 final Spliterator.OfDouble psp; 204 private OfDouble(Spliterator.OfDouble sp, boolean proxyEstimateSize) { 210 public Spliterator.OfDouble trySplit() { 212 Spliterator.OfDouble prefix = psp.trySplit(); 220 return Spliterator.OfDouble.super.tryAdvance(consumer); 225 Spliterator.OfDouble.super.forEachRemaining(consumer); 550 Spliterator.OfDouble sp = intermediateOp.apply(IntStream.range(0, 1000).asDoubleStream()).spliterator() [all...] |