Home
last modified time | relevance | path

Searched refs:iterate (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DConcatOpTest.java68 Stream.iterate(0, i -> i + 1))); in testSize()
71 Stream.iterate(0, i -> i + 1), in testSize()
86 LongStream.iterate(0, i -> i + 1))); in testLongSize()
89 LongStream.iterate(0, i -> i + 1), in testLongSize()
104 IntStream.iterate(0, i -> i + 1))); in testIntSize()
107 IntStream.iterate(0, i -> i + 1), in testIntSize()
122 DoubleStream.iterate(0, i -> i + 1))); in testDoubleSize()
125 DoubleStream.iterate(0, i -> i + 1), in testDoubleSize()
DRangeTest.java47 Integer first = Stream.iterate(0, i -> i + 1).filter(i -> i > 10000).findFirst().get(); in testInfiniteRangeFindFirst()
48 …assertEquals(first, Stream.iterate(0, i -> i + 1).parallel().filter(i -> i > 10000).findFirst().ge… in testInfiniteRangeFindFirst()
53 "", () -> Stream.iterate(0, i -> i + 1).filter(i -> i > 10000).limit(20000))). in testInfiniteRangeFindFirst()
138 "int range", () -> IntStream.iterate(0, i -> i + 1).limit(10000))). in testIntInfiniteRangeLimit()
143 int first = IntStream.iterate(0, i -> i + 1).filter(i -> i > 10000).findFirst().getAsInt(); in testIntInfiniteRangeFindFirst()
144 …assertEquals(first, IntStream.iterate(0, i -> i + 1).parallel().filter(i -> i > 10000).findFirst()… in testIntInfiniteRangeFindFirst()
221 "long range", () -> LongStream.iterate(0, i -> i + 1).limit(10000))). in testLongInfiniteRangeLimit()
226 … long first = LongStream.iterate(0, i -> i + 1).filter(i -> i > 10000).findFirst().getAsLong(); in testLongInfiniteRangeFindFirst()
227 …assertEquals(first, LongStream.iterate(0, i -> i + 1).parallel().filter(i -> i > 10000).findFirst(… in testLongInfiniteRangeFindFirst()
DInfiniteStreamWithLimitOpTest.java408 "[1L, 2L, 3L, ...]", () -> Stream.iterate(1L, i -> i + 1L));
421 "[1, 2, 3, ...]", () -> IntStream.iterate(1, i -> i + 1));
434 "[1L, 2L, 3L, ...]", () -> LongStream.iterate(1, i -> i + 1));
447 "[1.0, 2.0, 3.0, ...]", () -> DoubleStream.iterate(1, i -> i + 1));
DDoublePrimitiveOpsTests.java97 double[] actual = DoubleStream.iterate(1.0, i -> i + 1.0).limit(9).toArray(); in testLimit()
DIntPrimitiveOpsTests.java173 int[] actual = IntStream.iterate(1, i -> i + 1).limit(9).toArray(); in testLimit()
DLongPrimitiveOpsTests.java173 long[] actual = LongStream.iterate(1, i -> i + 1).limit(9).toArray(); in testLimit()
DDistinctOpTest.java72 … Optional<Integer> oi = Stream.iterate(1, i -> i + 1).unordered().parallel().distinct().findAny(); in testWithUnorderedInfiniteStream()
/libcore/ojluni/src/test/java/util/stream/
DTestDoubleSumAverage.java52 Supplier<DoubleStream> ds = () -> DoubleStream.iterate(0.0, e -> 0.0).limit(10); in testZeroAverageOfNonEmptyStream()
77 Supplier<DoubleStream> ds = () -> DoubleStream.iterate(base, e -> increment).limit(count); in testForCompenstation()
/libcore/ojluni/src/main/java/java/util/stream/
DDoubleStream.java775 public static DoubleStream iterate(final double seed, final DoubleUnaryOperator f) { in iterate() method
DIntStream.java741 public static IntStream iterate(final int seed, final IntUnaryOperator f) { in iterate() method
DLongStream.java734 public static LongStream iterate(final long seed, final LongUnaryOperator f) { in iterate() method
DStream.java1020 public static<T> Stream<T> iterate(final T seed, final UnaryOperator<T> f) { in iterate() method
/libcore/ojluni/src/main/java/java/util/
DCollections.java5384 Collection<?> iterate = c1;
5394 iterate = c2;
5411 iterate = c2;
5416 for (Object e : iterate) {