Home
last modified time | relevance | path

Searched refs:OfLong (Results 1 – 25 of 62) sorted by relevance

123

/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DLongNodeTest.java90 private Node.OfLong fill(long[] array, Node.Builder.OfLong nb) { in fill()
98 private Node.OfLong degenerateTree(PrimitiveIterator.OfLong it) { in degenerateTree()
105 return new Nodes.ConcNode.OfLong(Nodes.node(new long[] {i}), degenerateTree(it)); in degenerateTree()
112 private Node.OfLong tree(List<Long> l, Function<List<Long>, Node.OfLong> m) { in tree()
117 return new Nodes.ConcNode.OfLong( in tree()
124 public void testAsArray(long[] array, Node.OfLong n) { in testAsArray()
129 public void testFlattenAsArray(long[] array, Node.OfLong n) { in testFlattenAsArray()
134 public void testCopyTo(long[] array, Node.OfLong n) { in testCopyTo()
142 public void testForEach(long[] array, Node.OfLong n) { in testForEach()
152 public void testStreams(long[] array, Node.OfLong n) { in testStreams()
[all …]
DSpinedBufferTest.java228 SpinedBuffer.OfLong sb = new SpinedBuffer.OfLong(); in createLongSpinedBuffer()
238 public void testLongSpliterator(long[] array, SpinedBuffer.OfLong sb) { in testLongSpliterator()
246 public void testLongLastSplit(long[] array, SpinedBuffer.OfLong sb) { in testLongLastSplit()
247 Spliterator.OfLong spliterator = sb.spliterator(); in testLongLastSplit()
248 Spliterator.OfLong split = spliterator.trySplit(); in testLongLastSplit()
271 SpinedBuffer.OfLong sb = new SpinedBuffer.OfLong(); in testLongSpinedBuffer()
276 PrimitiveIterator.OfLong it = sb.iterator(); in testLongSpinedBuffer()
DSliceSpliteratorTest.java103 … Spliterator.OfLong s = Arrays.spliterator(source.stream().mapToLong(i->i).toArray()); in sliceSpliteratorDataProvider()
105 return new StreamSpliterators.SliceSpliterator.OfLong(s, skip, limit); in sliceSpliteratorDataProvider()
161 … Spliterator.OfLong s = Arrays.spliterator(source.stream().mapToLong(i->i).toArray()); in sliceSpliteratorDataProvider()
163 return new StreamSpliterators.UnorderedSliceSpliterator.OfLong(s, skip, limit); in sliceSpliteratorDataProvider()
/libcore/ojluni/src/main/java/java/util/stream/
DStreamSpliterators.java380 extends AbstractWrappingSpliterator<P_IN, Long, SpinedBuffer.OfLong>
381 implements Spliterator.OfLong {
402 SpinedBuffer.OfLong b = new SpinedBuffer.OfLong(); in initPartialTraversalState()
404 bufferSink = ph.wrapSink((Sink.OfLong) b::accept); in initPartialTraversalState()
409 public Spliterator.OfLong trySplit() { in trySplit()
410 return (Spliterator.OfLong) super.trySplit(); in trySplit()
428 ph.wrapAndCopyInto((Sink.OfLong) consumer::accept, spliterator); in forEachRemaining()
586 static final class OfLong class in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator
587 extends OfPrimitive<Long, LongConsumer, Spliterator.OfLong>
588 implements Spliterator.OfLong {
[all …]
DNodes.java69 private static final Node.OfLong EMPTY_LONG_NODE = new EmptyNode.OfLong();
120 return (Node<T>) new ConcNode.OfLong((Node.OfLong) left, (Node.OfLong) right); in conc()
229 static Node.OfLong node(final long[] array) { in node()
241 static Node.Builder.OfLong longBuilder(long exactSizeIfKnown) { in longBuilder()
252 static Node.Builder.OfLong longBuilder() { in longBuilder()
392 public static <P_IN> Node.OfLong collectLong(PipelineHelper<Long> helper, in collectLong()
400 new SizedCollectorTask.OfLong<>(spliterator, helper, array).invoke(); in collectLong()
404 Node.OfLong node = new CollectorTask.OfLong<>(helper, spliterator).invoke(); in collectLong()
516 public static Node.OfLong flattenLong(Node.OfLong node) { in flattenLong()
522 new ToArrayTask.OfLong(node, array, 0).invoke(); in flattenLong()
[all …]
DNode.java210 interface OfLong extends Node.Builder<Long>, Sink.OfLong { interface
212 Node.OfLong build(); in build()
387 interface OfLong extends OfPrimitive<Long, LongConsumer, long[], Spliterator.OfLong, OfLong> { interface
429 default Node.OfLong truncate(long from, long to, IntFunction<Long[]> generator) { in truncate()
433 Spliterator.OfLong spliterator = spliterator(); in truncate()
434 Node.Builder.OfLong nodeBuilder = Nodes.longBuilder(size); in truncate()
DLongStream.java672 PrimitiveIterator.OfLong iterator(); in iterator()
675 Spliterator.OfLong spliterator(); in spliterator()
735 final PrimitiveIterator.OfLong iterator = new PrimitiveIterator.OfLong() { in iterate()
766 … new StreamSpliterators.InfiniteSupplyingSpliterator.OfLong(Long.MAX_VALUE, s), false); in generate()
865 Spliterator.OfLong split = new Streams.ConcatSpliterator.OfLong( in concat()
DStreams.java185 static final class RangeLongSpliterator implements Spliterator.OfLong {
261 public Spliterator.OfLong trySplit() { in trySplit()
517 extends AbstractStreamBuilderImpl<Long, Spliterator.OfLong>
518 implements LongStream.Builder, Spliterator.OfLong {
525 SpinedBuffer.OfLong buffer;
552 buffer = new SpinedBuffer.OfLong(); in accept()
823 static class OfLong class in Streams
824 extends ConcatSpliterator.OfPrimitive<Long, LongConsumer, Spliterator.OfLong>
825 implements Spliterator.OfLong {
826 OfLong(Spliterator.OfLong aSpliterator, Spliterator.OfLong bSpliterator) { in OfLong() method in Streams.OfLong
DLongPipeline.java117 private static Spliterator.OfLong adapt(Spliterator<Long> s) { in adapt()
118 if (s instanceof Spliterator.OfLong) { in adapt()
119 return (Spliterator.OfLong) s; in adapt()
153 … public final Spliterator.OfLong lazySpliterator(Supplier<? extends Spliterator<Long>> supplier) { in lazySpliterator()
154 …return new StreamSpliterators.DelegatingSpliterator.OfLong((Supplier<Spliterator.OfLong>) supplier… in lazySpliterator()
159 Spliterator.OfLong spl = adapt(spliterator); in forEachWithCancel()
173 public final PrimitiveIterator.OfLong iterator() { in iterator()
178 public final Spliterator.OfLong spliterator() { in spliterator()
485 return Nodes.flattenLong((Node.OfLong) evaluateToArrayNode(Long[]::new))
DStreamSupport.java204 public static LongStream longStream(Spliterator.OfLong spliterator, in longStream()
243 public static LongStream longStream(Supplier<? extends Spliterator.OfLong> supplier, in longStream()
DSliceOps.java90 .SliceSpliterator.OfLong((Spliterator.OfLong) s, skip, sliceFence); in sliceSpliterator()
346 Spliterator.OfLong unorderedSkipLimitSpliterator(
347 Spliterator.OfLong s, long skip, long limit, long sizeIfKnown) {
354 return new StreamSpliterators.UnorderedSliceSpliterator.OfLong(s, skip, limit);
362 return new StreamSpliterators.SliceSpliterator.OfLong(
363 (Spliterator.OfLong) helper.wrapSpliterator(spliterator),
368 (Spliterator.OfLong) helper.wrapSpliterator(spliterator),
391 Spliterator.OfLong s = unorderedSkipLimitSpliterator(
392 (Spliterator.OfLong) helper.wrapSpliterator(spliterator),
DSortedOps.java83 return new OfLong(upstream); in makeLong()
206 private static final class OfLong extends LongPipeline.StatefulOp<Long> { class in SortedOps
207 OfLong(AbstractPipeline<?, Long, ?> upstream) { in OfLong() method in SortedOps.OfLong
232 Node.OfLong n = (Node.OfLong) helper.evaluate(spliterator, true, generator); in opEvaluateParallel()
567 private SpinedBuffer.OfLong b;
577 b = (size > 0) ? new SpinedBuffer.OfLong((int) size) : new SpinedBuffer.OfLong(); in begin()
DSink.java207 interface OfLong extends Sink<Long>, LongConsumer { interface
309 static abstract class ChainedLong<E_OUT> implements Sink.OfLong {
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DRangeTest.java206 TestData.OfLong longRangeData(long start, long end) {
210 TestData.OfLong longRangeClosedData(long start, long end) { in longRangeClosedData()
244 Spliterator.OfLong s = LongStream.range(Long.MIN_VALUE, Long.MAX_VALUE).spliterator(); in testLongLongRange()
249 Spliterator.OfLong s1 = s.trySplit(); in testLongLongRange()
253 Spliterator.OfLong s2 = s1.trySplit(); in testLongLongRange()
270 Spliterator.OfLong s = LongStream.range(start, end).spliterator(); in testLongLongRange()
275 Spliterator.OfLong s1 = s.trySplit(); in testLongLongRange()
294 … Spliterator.OfLong s = LongStream.rangeClosed(Long.MIN_VALUE, Long.MAX_VALUE).spliterator();
299 Spliterator.OfLong s1 = s.trySplit();
303 Spliterator.OfLong s2 = s1.trySplit();
[all …]
DStreamSpliteratorTest.java159 …private static class OfLong extends ProxyNoExactSizeSpliterator<Long> implements Spliterator.OfLon… class in StreamSpliteratorTest.ProxyNoExactSizeSpliterator
160 final Spliterator.OfLong psp;
162 private OfLong(Spliterator.OfLong sp, boolean proxyEstimateSize) { in OfLong() method in StreamSpliteratorTest.ProxyNoExactSizeSpliterator.OfLong
168 public Spliterator.OfLong trySplit() { in trySplit()
170 Spliterator.OfLong prefix = psp.trySplit(); in trySplit()
178 return Spliterator.OfLong.super.tryAdvance(consumer); in tryAdvance()
183 Spliterator.OfLong.super.forEachRemaining(consumer); in forEachRemaining()
457 … Spliterator.OfLong sp = intermediateOp.apply(LongStream.range(0, 1000)).spliterator(); in testLongSplitting()
458 …ProxyNoExactSizeSpliterator.OfLong psp = new ProxyNoExactSizeSpliterator.OfLong(sp, proxyEstimateS… in testLongSplitting()
478 public void testLongStreamSpliterators(String name, TestData.OfLong data) {
[all …]
DInfiniteStreamWithLimitOpTest.java156 private TestData.OfLong longs() {
160 private TestData.OfLong longRange(long l, long u) {
275 private Spliterator.OfLong proxyNotSubsized(Spliterator.OfLong s) {
295 return (Spliterator.OfLong) Proxy.newProxyInstance(this.getClass().getClassLoader(),
296 new Class[]{Spliterator.OfLong.class},
300 private TestData.OfLong proxiedLongRange(long l, long u) {
382 TestData.OfLong generator = TestData.Factory.ofLongSupplier(
433 TestData.OfLong iterator = TestData.Factory.ofLongSupplier(
/libcore/ojluni/src/main/java/java/util/
DSpliterators.java91 public static Spliterator.OfLong emptyLongSpliterator() { in emptyLongSpliterator()
95 private static final Spliterator.OfLong EMPTY_LONG_SPLITERATOR =
96 new EmptySpliterator.OfLong();
266 public static Spliterator.OfLong spliterator(long[] array, in spliterator()
303 public static Spliterator.OfLong spliterator(long[] array, int fromIndex, int toIndex, in spliterator()
562 public static Spliterator.OfLong spliterator(PrimitiveIterator.OfLong iterator, in spliterator()
590 public static Spliterator.OfLong spliteratorUnknownSize(PrimitiveIterator.OfLong iterator, in spliteratorUnknownSize()
756 public static PrimitiveIterator.OfLong iterator(Spliterator.OfLong spliterator) { in iterator()
758 class Adapter implements PrimitiveIterator.OfLong, LongConsumer { in iterator()
873 private static final class OfLong class in Spliterators.EmptySpliterator
[all …]
DSpliterator.java708 public interface OfLong extends OfPrimitive<Long, LongConsumer, OfLong> { interface
711 OfLong trySplit(); in trySplit()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DTestData.java73 public interface OfLong extends TestData<Long, LongStream> { } interface
145 public static <T> OfLong ofArray(String name, long[] array) { in ofArray()
150 public static OfLong ofSpinedBuffer(String name, SpinedBuffer.OfLong buffer) { in ofSpinedBuffer()
154 SpinedBuffer.OfLong::spliterator, in ofSpinedBuffer()
158 public static OfLong ofLongSupplier(String name, Supplier<LongStream> supplier) { in ofLongSupplier()
166 public static OfLong ofNode(String name, Node.OfLong node) { in ofNode()
171 Node.OfLong::spliterator, in ofNode()
307 extends AbstractTestData<Long, LongStream, I, Spliterator.OfLong>
308 implements TestData.OfLong {
314 Function<I, Spliterator.OfLong> splitrFn, in LongTestData()
[all …]
DLongStreamTestDataProvider.java90 SpinedBuffer.OfLong isl = new SpinedBuffer.OfLong();
111 SpinedBuffer.OfLong isl = new SpinedBuffer.OfLong();
144 static <T> Object[] splitDescr(String description, Supplier<Spliterator.OfLong> s) { in splitDescr()
DCollectorOps.java102 public static class OfLong extends TestParallelSizedOp<Long> { class in CollectorOps.TestParallelSizedOp
103 public OfLong() { in OfLong() method in CollectorOps.TestParallelSizedOp.OfLong
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DTestData.java72 public interface OfLong extends TestData<Long, LongStream> { } interface
144 public static <T> OfLong ofArray(String name, long[] array) { in ofArray()
149 public static OfLong ofSpinedBuffer(String name, SpinedBuffer.OfLong buffer) { in ofSpinedBuffer()
153 SpinedBuffer.OfLong::spliterator, in ofSpinedBuffer()
157 public static OfLong ofLongSupplier(String name, Supplier<LongStream> supplier) { in ofLongSupplier()
165 public static OfLong ofNode(String name, Node.OfLong node) { in ofNode()
170 Node.OfLong::spliterator, in ofNode()
306 extends AbstractTestData<Long, LongStream, I, Spliterator.OfLong>
307 implements TestData.OfLong {
313 Function<I, Spliterator.OfLong> splitrFn, in LongTestData()
[all …]
DLongStreamTestDataProvider.java89 SpinedBuffer.OfLong isl = new SpinedBuffer.OfLong();
110 SpinedBuffer.OfLong isl = new SpinedBuffer.OfLong();
143 static <T> Object[] splitDescr(String description, Supplier<Spliterator.OfLong> s) { in splitDescr()
DCollectorOps.java101 public static class OfLong extends TestParallelSizedOp<Long> { class in CollectorOps.TestParallelSizedOp
102 public OfLong() { in OfLong() method in CollectorOps.TestParallelSizedOp.OfLong
/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorsTest.java67 Spliterator.OfLong empty = Spliterators.emptyLongSpliterator(); in testEmptyLongSpliterator()
263 Spliterator.OfLong sp = Spliterators.spliterator(elements, 2, 6, 0); in test_spliterator_longOffsetBasic()
290 Spliterator.OfLong longSp = Spliterators.spliterator(elements, 0); in test_spliterator_long()
303 Spliterator.OfLong split1 = longSp.trySplit(); in test_spliterator_long()
309 Spliterator.OfLong split2 = split1.trySplit(); in test_spliterator_long()
389 Spliterator.OfLong longSp = Spliterators.spliterator(longElements, 0); in test_primitive_spliterators_NPE()
539 private static class CannedLongPrimitiveIterator implements PrimitiveIterator.OfLong {
654 PrimitiveIterator.OfLong elements = new CannedLongPrimitiveIterator(data); in test_spliterator_longPrimitiveIterator()
655 Spliterator.OfLong longSp = Spliterators.spliterator(elements, 16 /* size */, 0); in test_spliterator_longPrimitiveIterator()
668 Spliterator.OfLong split1 = longSp.trySplit(); in test_spliterator_longPrimitiveIterator()
[all …]

123