Home
last modified time | relevance | path

Searched refs:OfDouble (Results 1 – 25 of 64) sorted by relevance

123

/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DDoubleNodeTest.java90 private Node.OfDouble fill(double[] array, Node.Builder.OfDouble nb) { in fill()
98 private Node.OfDouble degenerateTree(PrimitiveIterator.OfDouble it) { in degenerateTree()
105 return new Nodes.ConcNode.OfDouble(Nodes.node(new double[] {i}), degenerateTree(it)); in degenerateTree()
112 private Node.OfDouble tree(List<Double> l, Function<List<Double>, Node.OfDouble> m) { in tree()
117 return new Nodes.ConcNode.OfDouble( in tree()
124 public void testAsArray(double[] array, Node.OfDouble n) { in testAsArray()
129 public void testFlattenAsArray(double[] array, Node.OfDouble n) { in testFlattenAsArray()
134 public void testCopyTo(double[] array, Node.OfDouble n) { in testCopyTo()
142 public void testForEach(double[] array, Node.OfDouble n) { in testForEach()
152 public void testStreams(double[] array, Node.OfDouble n) { in testStreams()
[all …]
DSpinedBufferTest.java304 SpinedBuffer.OfDouble sb = new SpinedBuffer.OfDouble(); in createDoubleSpinedBuffer()
314 public void testDoubleSpliterator(double[] array, SpinedBuffer.OfDouble sb) { in testDoubleSpliterator()
322 public void testLongLastSplit(double[] array, SpinedBuffer.OfDouble sb) { in testLongLastSplit()
323 Spliterator.OfDouble spliterator = sb.spliterator(); in testLongLastSplit()
324 Spliterator.OfDouble split = spliterator.trySplit(); in testLongLastSplit()
347 SpinedBuffer.OfDouble sb = new SpinedBuffer.OfDouble(); in testDoubleSpinedBuffer()
352 PrimitiveIterator.OfDouble it = sb.iterator(); in testDoubleSpinedBuffer()
DSliceSpliteratorTest.java116 … Spliterator.OfDouble s = Arrays.spliterator(source.stream().mapToDouble(i->i).toArray()); in sliceSpliteratorDataProvider()
118 return new StreamSpliterators.SliceSpliterator.OfDouble(s, skip, limit); in sliceSpliteratorDataProvider()
175 … Spliterator.OfDouble s = Arrays.spliterator(LongStream.range(0, SIZE).asDoubleStream().toArray()); in sliceSpliteratorDataProvider()
177 … return new StreamSpliterators.UnorderedSliceSpliterator.OfDouble(s, skip, limit); in sliceSpliteratorDataProvider()
/libcore/ojluni/src/main/java/java/util/stream/
DStreamSpliterators.java438 extends AbstractWrappingSpliterator<P_IN, Double, SpinedBuffer.OfDouble>
439 implements Spliterator.OfDouble {
460 SpinedBuffer.OfDouble b = new SpinedBuffer.OfDouble(); in initPartialTraversalState()
462 bufferSink = ph.wrapSink((Sink.OfDouble) b::accept); in initPartialTraversalState()
467 public Spliterator.OfDouble trySplit() { in trySplit()
468 return (Spliterator.OfDouble) super.trySplit(); in trySplit()
486 ph.wrapAndCopyInto((Sink.OfDouble) consumer::accept, spliterator); in forEachRemaining()
595 static final class OfDouble class in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator
596 extends OfPrimitive<Double, DoubleConsumer, Spliterator.OfDouble>
597 implements Spliterator.OfDouble {
[all …]
DNodes.java70 private static final Node.OfDouble EMPTY_DOUBLE_NODE = new EmptyNode.OfDouble();
122 return (Node<T>) new ConcNode.OfDouble((Node.OfDouble) left, (Node.OfDouble) right); in conc()
266 static Node.OfDouble node(final double[] array) { in node()
278 static Node.Builder.OfDouble doubleBuilder(long exactSizeIfKnown) { in doubleBuilder()
289 static Node.Builder.OfDouble doubleBuilder() { in doubleBuilder()
430 public static <P_IN> Node.OfDouble collectDouble(PipelineHelper<Double> helper, in collectDouble()
438 new SizedCollectorTask.OfDouble<>(spliterator, helper, array).invoke(); in collectDouble()
442 Node.OfDouble node = new CollectorTask.OfDouble<>(helper, spliterator).invoke(); in collectDouble()
542 public static Node.OfDouble flattenDouble(Node.OfDouble node) { in flattenDouble()
548 new ToArrayTask.OfDouble(node, array, 0).invoke(); in flattenDouble()
[all …]
DDoubleStream.java713 PrimitiveIterator.OfDouble iterator(); in iterator()
716 Spliterator.OfDouble spliterator(); in spliterator()
777 final PrimitiveIterator.OfDouble iterator = new PrimitiveIterator.OfDouble() { in iterate()
808 … new StreamSpliterators.InfiniteSupplyingSpliterator.OfDouble(Long.MAX_VALUE, s), false); in generate()
832 Spliterator.OfDouble split = new Streams.ConcatSpliterator.OfDouble( in concat()
DNode.java219 interface OfDouble extends Node.Builder<Double>, Sink.OfDouble { interface
221 Node.OfDouble build(); in build()
461 …interface OfDouble extends OfPrimitive<Double, DoubleConsumer, double[], Spliterator.OfDouble, OfD… interface
505 default Node.OfDouble truncate(long from, long to, IntFunction<Double[]> generator) { in truncate()
509 Spliterator.OfDouble spliterator = spliterator(); in truncate()
510 Node.Builder.OfDouble nodeBuilder = Nodes.doubleBuilder(size); in truncate()
DDoublePipeline.java117 private static Spliterator.OfDouble adapt(Spliterator<Double> s) { in adapt()
118 if (s instanceof Spliterator.OfDouble) { in adapt()
119 return (Spliterator.OfDouble) s; in adapt()
157 …public final Spliterator.OfDouble lazySpliterator(Supplier<? extends Spliterator<Double>> supplier… in lazySpliterator()
158 …return new StreamSpliterators.DelegatingSpliterator.OfDouble((Supplier<Spliterator.OfDouble>) supp… in lazySpliterator()
164 Spliterator.OfDouble spl = adapt(spliterator); in forEachWithCancel()
179 public final PrimitiveIterator.OfDouble iterator() { in iterator()
184 public final Spliterator.OfDouble spliterator() { in spliterator()
522 return Nodes.flattenDouble((Node.OfDouble) evaluateToArrayNode(Double[]::new))
DStreams.java608 extends AbstractStreamBuilderImpl<Double, Spliterator.OfDouble>
609 implements DoubleStream.Builder, Spliterator.OfDouble {
616 SpinedBuffer.OfDouble buffer;
643 buffer = new SpinedBuffer.OfDouble(); in accept()
831 static class OfDouble class in Streams
832 extends ConcatSpliterator.OfPrimitive<Double, DoubleConsumer, Spliterator.OfDouble>
833 implements Spliterator.OfDouble {
834 OfDouble(Spliterator.OfDouble aSpliterator, Spliterator.OfDouble bSpliterator) { in OfDouble() method in Streams.OfDouble
DSliceOps.java93 .SliceSpliterator.OfDouble((Spliterator.OfDouble) s, skip, sliceFence); in sliceSpliterator()
464 Spliterator.OfDouble unorderedSkipLimitSpliterator(
465 Spliterator.OfDouble s, long skip, long limit, long sizeIfKnown) {
472 return new StreamSpliterators.UnorderedSliceSpliterator.OfDouble(s, skip, limit);
481 return new StreamSpliterators.SliceSpliterator.OfDouble(
482 (Spliterator.OfDouble) helper.wrapSpliterator(spliterator),
487 (Spliterator.OfDouble) helper.wrapSpliterator(spliterator),
511 Spliterator.OfDouble s = unorderedSkipLimitSpliterator(
512 (Spliterator.OfDouble) helper.wrapSpliterator(spliterator),
DSortedOps.java93 return new OfDouble(upstream); in makeDouble()
245 private static final class OfDouble extends DoublePipeline.StatefulOp<Double> { class in SortedOps
246 OfDouble(AbstractPipeline<?, Double, ?> upstream) { in OfDouble() method in SortedOps.OfDouble
271 Node.OfDouble n = (Node.OfDouble) helper.evaluate(spliterator, true, generator); in opEvaluateParallel()
665 private SpinedBuffer.OfDouble b;
675 b = (size > 0) ? new SpinedBuffer.OfDouble((int) size) : new SpinedBuffer.OfDouble(); in begin()
DStreamSupport.java272 public static DoubleStream doubleStream(Spliterator.OfDouble spliterator, in doubleStream()
311 public static DoubleStream doubleStream(Supplier<? extends Spliterator.OfDouble> supplier, in doubleStream()
DSink.java225 interface OfDouble extends Sink<Double>, DoubleConsumer { interface
342 static abstract class ChainedDouble<E_OUT> implements Sink.OfDouble {
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DDoubleStreamTestDataProvider.java94 SpinedBuffer.OfDouble isl = new SpinedBuffer.OfDouble();
110 SpinedBuffer.OfDouble isl = new SpinedBuffer.OfDouble();
134 static <T> Object[] splitDescr(String description, Supplier<Spliterator.OfDouble> s) { in splitDescr()
DTestData.java75 public interface OfDouble extends TestData<Double, DoubleStream> { } interface
176 public static <T> OfDouble ofArray(String name, double[] array) { in ofArray()
181 public static OfDouble ofSpinedBuffer(String name, SpinedBuffer.OfDouble buffer) { in ofSpinedBuffer()
185 SpinedBuffer.OfDouble::spliterator, in ofSpinedBuffer()
189 public static OfDouble ofDoubleSupplier(String name, Supplier<DoubleStream> supplier) { in ofDoubleSupplier()
197 public static OfDouble ofNode(String name, Node.OfDouble node) { in ofNode()
202 Node.OfDouble::spliterator, in ofNode()
332 extends AbstractTestData<Double, DoubleStream, I, Spliterator.OfDouble>
333 implements OfDouble {
339 Function<I, Spliterator.OfDouble> splitrFn, in DoubleTestData()
[all …]
DCollectorOps.java108 public static class OfDouble extends TestParallelSizedOp<Double> { class in CollectorOps.TestParallelSizedOp
109 public OfDouble() { in OfDouble() method in CollectorOps.TestParallelSizedOp.OfDouble
DDoubleStreamTestScenario.java74 … for (PrimitiveIterator.OfDouble seqIter = m.apply(data.stream()).iterator(); seqIter.hasNext(); ) in STREAM_ITERATOR()
83 … for (Spliterator.OfDouble spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR()
124 …for (Spliterator.OfDouble spl = m.apply(data.parallelStream()).spliterator(); spl.tryAdvance(b); )… in PAR_STREAM_SPLITERATOR()
150 Spliterator.OfDouble sp = s.spliterator(); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DDoubleStreamTestDataProvider.java89 SpinedBuffer.OfDouble isl = new SpinedBuffer.OfDouble();
105 SpinedBuffer.OfDouble isl = new SpinedBuffer.OfDouble();
129 static <T> Object[] splitDescr(String description, Supplier<Spliterator.OfDouble> s) { in splitDescr()
DTestData.java74 public interface OfDouble extends TestData<Double, DoubleStream> { } interface
175 public static <T> OfDouble ofArray(String name, double[] array) { in ofArray()
180 public static OfDouble ofSpinedBuffer(String name, SpinedBuffer.OfDouble buffer) { in ofSpinedBuffer()
184 SpinedBuffer.OfDouble::spliterator, in ofSpinedBuffer()
188 public static OfDouble ofDoubleSupplier(String name, Supplier<DoubleStream> supplier) { in ofDoubleSupplier()
196 public static OfDouble ofNode(String name, Node.OfDouble node) { in ofNode()
201 Node.OfDouble::spliterator, in ofNode()
331 extends AbstractTestData<Double, DoubleStream, I, Spliterator.OfDouble>
332 implements OfDouble {
338 Function<I, Spliterator.OfDouble> splitrFn, in DoubleTestData()
[all …]
DCollectorOps.java107 public static class OfDouble extends TestParallelSizedOp<Double> { class in CollectorOps.TestParallelSizedOp
108 public OfDouble() { in OfDouble() method in CollectorOps.TestParallelSizedOp.OfDouble
DDoubleStreamTestScenario.java70 … for (PrimitiveIterator.OfDouble seqIter = m.apply(data.stream()).iterator(); seqIter.hasNext(); ) in STREAM_ITERATOR()
79 … for (Spliterator.OfDouble spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR()
120 …for (Spliterator.OfDouble spl = m.apply(data.parallelStream()).spliterator(); spl.tryAdvance(b); )… in PAR_STREAM_SPLITERATOR()
146 Spliterator.OfDouble sp = s.spliterator(); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY()
/libcore/ojluni/src/main/java/java/util/
DSpliterators.java107 public static Spliterator.OfDouble emptyDoubleSpliterator() { in emptyDoubleSpliterator()
111 private static final Spliterator.OfDouble EMPTY_DOUBLE_SPLITERATOR =
112 new EmptySpliterator.OfDouble();
332 public static Spliterator.OfDouble spliterator(double[] array, in spliterator()
369 public static Spliterator.OfDouble spliterator(double[] array, int fromIndex, int toIndex, in spliterator()
619 public static Spliterator.OfDouble spliterator(PrimitiveIterator.OfDouble iterator, in spliterator()
647 public static Spliterator.OfDouble spliteratorUnknownSize(PrimitiveIterator.OfDouble iterator, in spliteratorUnknownSize()
801 public static PrimitiveIterator.OfDouble iterator(Spliterator.OfDouble spliterator) { in iterator()
803 class Adapter implements PrimitiveIterator.OfDouble, DoubleConsumer { in iterator()
879 private static final class OfDouble class in Spliterators.EmptySpliterator
[all …]
DSpliterator.java772 public interface OfDouble extends OfPrimitive<Double, DoubleConsumer, OfDouble> { interface
775 OfDouble trySplit(); in trySplit()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DStreamSpliteratorTest.java200 private static class OfDouble extends ProxyNoExactSizeSpliterator<Double> class in StreamSpliteratorTest.ProxyNoExactSizeSpliterator
201 implements Spliterator.OfDouble {
202 final Spliterator.OfDouble psp;
204 private OfDouble(Spliterator.OfDouble sp, boolean proxyEstimateSize) { in OfDouble() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator.OfDouble
210 public Spliterator.OfDouble trySplit() { in trySplit()
212 Spliterator.OfDouble prefix = psp.trySplit(); in trySplit()
220 return Spliterator.OfDouble.super.tryAdvance(consumer); in tryAdvance()
225 Spliterator.OfDouble.super.forEachRemaining(consumer); in forEachRemaining()
550 …Spliterator.OfDouble sp = intermediateOp.apply(IntStream.range(0, 1000).asDoubleStream()).splitera… in testDoubleSplitting()
551 …ProxyNoExactSizeSpliterator.OfDouble psp = new ProxyNoExactSizeSpliterator.OfDouble(sp, proxyEstim… in testDoubleSplitting()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorsTest.java84 Spliterator.OfDouble empty = Spliterators.emptyDoubleSpliterator(); in testEmptyDoubleSpliterator()
276 Spliterator.OfDouble sp = Spliterators.spliterator(elements, 2, 6, 0); in test_spliterator_doubleOffsetBasic()
327 Spliterator.OfDouble doubleSp = Spliterators.spliterator(elements, 0); in test_spliterator_double()
340 Spliterator.OfDouble split1 = doubleSp.trySplit(); in test_spliterator_double()
346 Spliterator.OfDouble split2 = split1.trySplit(); in test_spliterator_double()
415 Spliterator.OfDouble doubleSp = Spliterators.spliterator(doubleElements, 0); in test_primitive_spliterators_NPE()
559 private static class CannedDoublePrimitiveIterator implements PrimitiveIterator.OfDouble {
725 PrimitiveIterator.OfDouble elements = new CannedDoublePrimitiveIterator(data); in test_spliterator_doublePrimitiveIterator()
726 Spliterator.OfDouble doubleSp = Spliterators.spliterator(elements, 16 /* size */, 0); in test_spliterator_doublePrimitiveIterator()
739 Spliterator.OfDouble split1 = doubleSp.trySplit(); in test_spliterator_doublePrimitiveIterator()
[all …]

123