Home
last modified time | relevance | path

Searched refs:distinct (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DDistinctOpTest.java57 assertCountSum(repeat(0, 10).stream().distinct(), 1, 0); in testUniqOp()
58 assertCountSum(repeat(1, 10).stream().distinct(), 1, 1); in testUniqOp()
59 assertCountSum(countTo(0).stream().distinct(), 0, 0); in testUniqOp()
60 assertCountSum(countTo(10).stream().distinct(), 10, 55); in testUniqOp()
61 assertCountSum(countTo(10).stream().distinct(), 10, 55); in testUniqOp()
72 … Optional<Integer> oi = Stream.iterate(1, i -> i + 1).unordered().parallel().distinct().findAny(); in testWithUnorderedInfiniteStream()
75 oi = ThreadLocalRandom.current().ints().boxed().parallel().distinct().findAny(); in testWithUnorderedInfiniteStream()
83 Stream::distinct, in testOp()
84 IntStream::distinct, in testOp()
85 LongStream::distinct, in testOp()
[all …]
DIntUniqOpTest.java47 assertCountSum(IntStream.generate(() -> 0).limit(10).distinct().boxed(), 1, 0); in testUniqOp()
48 assertCountSum(IntStream.generate(() -> 1).limit(10).distinct().boxed(), 1, 1); in testUniqOp()
49 assertCountSum(IntStream.range(0, 0).distinct().boxed(), 0, 0); in testUniqOp()
50 assertCountSum(IntStream.range(1, 11).distinct().boxed(), 10, 55); in testUniqOp()
51 assertCountSum(IntStream.range(1, 11).distinct().boxed(), 10, 55); in testUniqOp()
56 Collection<Integer> result = exerciseOps(data, s -> s.distinct().boxed()); in testOp()
69 stream(s -> s.sorted().distinct().boxed()). in testOpSorted()
DToArrayOpTest.java113 s -> s.distinct(),
114 s -> s.distinct(),
146 s -> s.distinct(),
257 s -> s.distinct(),
258 s -> s.distinct(),
273 s -> s.distinct(),
330 s -> s.distinct(),
331 s -> s.distinct(),
346 s -> s.distinct(),
403 s -> s.distinct(),
[all …]
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DStreamReuseTest.java91 Stream::distinct, (Stream<Integer> s) -> s.map(i -> i), in testTwoStreams()
95 (Stream<Integer> s) -> s.map(i -> i), Stream::distinct, in testTwoStreams()
99 Stream::distinct, Stream::distinct, in testTwoStreams()
123 Stream::findFirst, Stream::distinct, in testTerminalStream()
127 Stream::distinct, Stream::findFirst, in testTerminalStream()
163 Stream::iterator, Stream::distinct, in testStreamIterator()
167 Stream::distinct, Stream::iterator, in testStreamIterator()
181 IntStream::distinct, (IntStream s) -> s.mapToObj(i -> i), in testTwoStreams()
185 (IntStream s) -> s.mapToObj(i -> i), IntStream::distinct, in testTwoStreams()
189 IntStream::distinct, IntStream::distinct, in testTwoStreams()
[all …]
DSpinedBufferTest.java48 .distinct()
/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorTester.java273 HashSet<T> distinct = new HashSet<>(); in runDistinctTests() local
281 spliterator.forEachRemaining(value -> { distinct.add(value); allElements.add(value); }); in runDistinctTests()
284 split1.forEachRemaining(value -> { distinct.add(value); allElements.add(value); }); in runDistinctTests()
286 assertEquals(distinct.size(), allElements.size()); in runDistinctTests()
288 distinct.clear(); in runDistinctTests()
294 while (spliterator.tryAdvance(value -> { distinct.add(value); allElements.add(value); })) { in runDistinctTests()
299 while (split1.tryAdvance(value -> { distinct.add(value); allElements.add(value); })) { in runDistinctTests()
303 assertEquals(distinct.size(), allElements.size()); in runDistinctTests()
/libcore/ojluni/src/main/java/java/util/stream/
DDoubleStream.java181 DoubleStream distinct(); in distinct() method
DIntStream.java175 IntStream distinct(); in distinct() method
DIntPipeline.java411 public final IntStream distinct() {
414 return boxed().distinct().mapToInt(i -> i);
DLongPipeline.java392 public final LongStream distinct() {
395 return boxed().distinct().mapToLong(i -> (long) i);
DDoublePipeline.java376 public final DoubleStream distinct() {
379 return boxed().distinct().mapToDouble(i -> (double) i);
DLongStream.java180 LongStream distinct(); in distinct() method
DStream.java359 Stream<T> distinct(); in distinct() method
DReferencePipeline.java400 public final Stream<P_OUT> distinct() {
/libcore/api/
Dcurrent.txt16686 method public java.util.stream.DoubleStream distinct();
16736 method public java.util.stream.IntStream distinct();
16787 method public java.util.stream.LongStream distinct();
16836 method public java.util.stream.Stream<T> distinct();