/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | DistinctOpTest.java | 57 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 …]
|
D | IntUniqOpTest.java | 47 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()
|
D | ToArrayOpTest.java | 113 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/ |
D | StreamReuseTest.java | 91 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 …]
|
D | SpinedBufferTest.java | 48 .distinct()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorTester.java | 273 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/ |
D | DoubleStream.java | 181 DoubleStream distinct(); in distinct() method
|
D | IntStream.java | 175 IntStream distinct(); in distinct() method
|
D | IntPipeline.java | 411 public final IntStream distinct() { 414 return boxed().distinct().mapToInt(i -> i);
|
D | LongPipeline.java | 392 public final LongStream distinct() { 395 return boxed().distinct().mapToLong(i -> (long) i);
|
D | DoublePipeline.java | 376 public final DoubleStream distinct() { 379 return boxed().distinct().mapToDouble(i -> (double) i);
|
D | LongStream.java | 180 LongStream distinct(); in distinct() method
|
D | Stream.java | 359 Stream<T> distinct(); in distinct() method
|
D | ReferencePipeline.java | 400 public final Stream<P_OUT> distinct() {
|
/libcore/api/ |
D | current.txt | 16686 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();
|