/libcore/ojluni/src/test/java/util/Arrays/ |
D | StreamAndSpliterator.java | 36 import java.util.Spliterators; 105 assertThrowsNPE(() -> Spliterators.spliterator((int[]) null, 0, 0, 0)); in testSpliteratorNPEsFromSpliterators() 106 assertThrowsNPE(() -> Spliterators.spliterator((long[]) null, 0, 0, 0)); in testSpliteratorNPEsFromSpliterators() 107 assertThrowsNPE(() -> Spliterators.spliterator((double[]) null, 0, 0, 0)); in testSpliteratorNPEsFromSpliterators() 108 assertThrowsNPE(() -> Spliterators.spliterator((String[]) null, 0, 0, 0)); in testSpliteratorNPEsFromSpliterators() 114 assertThrowsAIOOB(() -> Spliterators.spliterator(new int[]{}, 1, 0, 0)); in testSpliteratorAIOBEsFromSpliterators() 115 assertThrowsAIOOB(() -> Spliterators.spliterator(new long[]{}, 1, 0, 0)); in testSpliteratorAIOBEsFromSpliterators() 116 assertThrowsAIOOB(() -> Spliterators.spliterator(new double[]{}, 1, 0, 0)); in testSpliteratorAIOBEsFromSpliterators() 117 assertThrowsAIOOB(() -> Spliterators.spliterator(new String[]{}, 1, 0, 0)); in testSpliteratorAIOBEsFromSpliterators() 120 assertThrowsAIOOB(() -> Spliterators.spliterator(new int[]{}, -1, 0, 0)); in testSpliteratorAIOBEsFromSpliterators() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorsTest.java | 28 import java.util.Spliterators; 29 import java.util.Spliterators.AbstractDoubleSpliterator; 30 import java.util.Spliterators.AbstractIntSpliterator; 31 import java.util.Spliterators.AbstractLongSpliterator; 32 import java.util.Spliterators.AbstractSpliterator; 41 Spliterator.OfInt empty = Spliterators.emptyIntSpliterator(); in testEmptyIntSpliterator() 58 Spliterator<Object> empty = Spliterators.emptySpliterator(); in testEmptyRefSpliterator() 71 Spliterator.OfLong empty = Spliterators.emptyLongSpliterator(); in testEmptyLongSpliterator() 88 Spliterator.OfDouble empty = Spliterators.emptyDoubleSpliterator(); in testEmptyDoubleSpliterator() 108 Spliterator<String> sp = Spliterators.spliterator(array, 0); in testSpliteratorObjectArray() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Iterable.java | 30 import java.util.Spliterators; 101 return Spliterators.spliteratorUnknownSize(iterator(), 0); in spliterator()
|
D | CharSequence.java | 32 import java.util.Spliterators; 173 Spliterators.spliterator( in chars() 249 Spliterators.spliteratorUnknownSize( in codePoints()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | DoubleStreamTestDataProvider.java | 28 import java.util.Spliterators; 124 … () -> Spliterators.spliterator(isl.iterator(), doubles.length, 0))); 126 … () -> Spliterators.spliteratorUnknownSize(isl.iterator(), 0)));
|
D | IntStreamTestDataProvider.java | 28 import java.util.Spliterators; 128 … () -> Spliterators.spliterator(isl.iterator(), ints.length, 0))); 130 … () -> Spliterators.spliteratorUnknownSize(isl.iterator(), 0)));
|
D | LongStreamTestDataProvider.java | 28 import java.util.Spliterators; 128 … () -> Spliterators.spliterator(isl.iterator(), longs.length, 0))); 130 … () -> Spliterators.spliteratorUnknownSize(isl.iterator(), 0)));
|
D | StreamTestDataProvider.java | 28 import java.util.Spliterators; 166 … () -> Spliterators.spliterator(Arrays.asList(ints).iterator(), ints.length, 0))); 168 … () -> Spliterators.spliteratorUnknownSize(Arrays.asList(ints).iterator(), 0)));
|
D | TestData.java | 30 import java.util.Spliterators; 49 return Spliterators.iterator(spliterator()); in iterator() 296 return Spliterators.iterator(spliterator()); in iterator() 321 return Spliterators.iterator(spliterator()); in iterator() 346 return Spliterators.iterator(spliterator()); in iterator()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | DoubleStreamTestDataProvider.java | 28 import java.util.Spliterators; 119 … () -> Spliterators.spliterator(isl.iterator(), doubles.length, 0))); 121 … () -> Spliterators.spliteratorUnknownSize(isl.iterator(), 0)));
|
D | LongStreamTestDataProvider.java | 28 import java.util.Spliterators; 124 … () -> Spliterators.spliterator(isl.iterator(), longs.length, 0))); 126 … () -> Spliterators.spliteratorUnknownSize(isl.iterator(), 0)));
|
D | IntStreamTestDataProvider.java | 28 import java.util.Spliterators; 124 … () -> Spliterators.spliterator(isl.iterator(), ints.length, 0))); 126 … () -> Spliterators.spliteratorUnknownSize(isl.iterator(), 0)));
|
D | StreamTestDataProvider.java | 28 import java.util.Spliterators; 160 … () -> Spliterators.spliterator(Arrays.asList(ints).iterator(), ints.length, 0))); 162 … () -> Spliterators.spliteratorUnknownSize(Arrays.asList(ints).iterator(), 0)));
|
D | TestData.java | 30 import java.util.Spliterators; 48 return Spliterators.iterator(spliterator()); in iterator() 295 return Spliterators.iterator(spliterator()); in iterator() 320 return Spliterators.iterator(spliterator()); in iterator() 345 return Spliterators.iterator(spliterator()); in iterator()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | DistinctOpTest.java | 38 import java.util.Spliterators; 121 …c -> StreamSupport.stream(Spliterators.spliterator(c.toArray(), Spliterator.ORDERED | Spliterator.… in SortedTestData() 122 …c -> StreamSupport.stream(Spliterators.spliterator(c.toArray(), Spliterator.ORDERED | Spliterator.… in SortedTestData() 123 … c -> Spliterators.spliterator(c.toArray(), Spliterator.ORDERED | Spliterator.SORTED), in SortedTestData()
|
D | SortedOpTest.java | 36 import java.util.Spliterators; 172 return StreamSupport.stream(Spliterators.spliteratorUnknownSize(l.iterator(), 0), false); in unknownSizeStream() 249 …return StreamSupport.intStream(Spliterators.spliteratorUnknownSize(Spliterators.iterator(Arrays.sp… in unknownSizeIntStream() 297 …return StreamSupport.longStream(Spliterators.spliteratorUnknownSize(Spliterators.iterator(Arrays.s… in unknownSizeLongStream() 345 …return StreamSupport.doubleStream(Spliterators.spliteratorUnknownSize(Spliterators.iterator(Arrays… in unknownSizeDoubleStream()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | DoubleStream.java | 33 import java.util.Spliterators; 957 return StreamSupport.doubleStream(Spliterators.emptyDoubleSpliterator(), false); in empty() 1004 … Spliterator.OfDouble spliterator = new Spliterators.AbstractDoubleSpliterator(Long.MAX_VALUE, in iterate() 1066 … Spliterator.OfDouble spliterator = new Spliterators.AbstractDoubleSpliterator(Long.MAX_VALUE, in iterate()
|
D | IntStream.java | 34 import java.util.Spliterators; 898 return StreamSupport.intStream(Spliterators.emptyIntSpliterator(), false); in empty() 945 Spliterator.OfInt spliterator = new Spliterators.AbstractIntSpliterator(Long.MAX_VALUE, in iterate() 1007 Spliterator.OfInt spliterator = new Spliterators.AbstractIntSpliterator(Long.MAX_VALUE, in iterate()
|
D | LongStream.java | 34 import java.util.Spliterators; 887 return StreamSupport.longStream(Spliterators.emptyLongSpliterator(), false); in empty() 934 Spliterator.OfLong spliterator = new Spliterators.AbstractLongSpliterator(Long.MAX_VALUE, in iterate() 996 Spliterator.OfLong spliterator = new Spliterators.AbstractLongSpliterator(Long.MAX_VALUE, in iterate()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArraySet.java | 44 import java.util.Spliterators; 444 return Spliterators.spliterator in spliterator()
|
/libcore/ojluni/src/main/java/java/util/ |
D | SortedSet.java | 256 return new Spliterators.IteratorSpliterator<E>( in spliterator()
|
D | Collection.java | 724 return Spliterators.spliterator(this, 0); in spliterator()
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | IntNodeTest.java | 29 import java.util.Spliterators; 51 nodes.add(degenerateTree(Spliterators.iterator(Arrays.spliterator(array)))); in createSizes()
|
D | LongNodeTest.java | 29 import java.util.Spliterators; 51 nodes.add(degenerateTree(Spliterators.iterator(Arrays.spliterator(array)))); in createSizes()
|
D | DoubleNodeTest.java | 29 import java.util.Spliterators; 51 nodes.add(degenerateTree(Spliterators.iterator(Arrays.spliterator(array)))); in createSizes()
|