Home
last modified time | relevance | path

Searched refs:Spliterators (Results 1 – 25 of 63) sorted by relevance

123

/libcore/ojluni/src/test/java/util/Arrays/
DStreamAndSpliterator.java36 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/
DSpliteratorsTest.java28 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/
DIterable.java30 import java.util.Spliterators;
101 return Spliterators.spliteratorUnknownSize(iterator(), 0); in spliterator()
DCharSequence.java32 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/
DDoubleStreamTestDataProvider.java28 import java.util.Spliterators;
124 … () -> Spliterators.spliterator(isl.iterator(), doubles.length, 0)));
126 … () -> Spliterators.spliteratorUnknownSize(isl.iterator(), 0)));
DIntStreamTestDataProvider.java28 import java.util.Spliterators;
128 … () -> Spliterators.spliterator(isl.iterator(), ints.length, 0)));
130 … () -> Spliterators.spliteratorUnknownSize(isl.iterator(), 0)));
DLongStreamTestDataProvider.java28 import java.util.Spliterators;
128 … () -> Spliterators.spliterator(isl.iterator(), longs.length, 0)));
130 … () -> Spliterators.spliteratorUnknownSize(isl.iterator(), 0)));
DStreamTestDataProvider.java28 import java.util.Spliterators;
166 … () -> Spliterators.spliterator(Arrays.asList(ints).iterator(), ints.length, 0)));
168 … () -> Spliterators.spliteratorUnknownSize(Arrays.asList(ints).iterator(), 0)));
DTestData.java30 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/
DDoubleStreamTestDataProvider.java28 import java.util.Spliterators;
119 … () -> Spliterators.spliterator(isl.iterator(), doubles.length, 0)));
121 … () -> Spliterators.spliteratorUnknownSize(isl.iterator(), 0)));
DLongStreamTestDataProvider.java28 import java.util.Spliterators;
124 … () -> Spliterators.spliterator(isl.iterator(), longs.length, 0)));
126 … () -> Spliterators.spliteratorUnknownSize(isl.iterator(), 0)));
DIntStreamTestDataProvider.java28 import java.util.Spliterators;
124 … () -> Spliterators.spliterator(isl.iterator(), ints.length, 0)));
126 … () -> Spliterators.spliteratorUnknownSize(isl.iterator(), 0)));
DStreamTestDataProvider.java28 import java.util.Spliterators;
160 … () -> Spliterators.spliterator(Arrays.asList(ints).iterator(), ints.length, 0)));
162 … () -> Spliterators.spliteratorUnknownSize(Arrays.asList(ints).iterator(), 0)));
DTestData.java30 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/
DDistinctOpTest.java38 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()
DSortedOpTest.java36 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/
DDoubleStream.java33 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()
DIntStream.java34 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()
DLongStream.java34 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/
DCopyOnWriteArraySet.java44 import java.util.Spliterators;
444 return Spliterators.spliterator in spliterator()
/libcore/ojluni/src/main/java/java/util/
DSortedSet.java256 return new Spliterators.IteratorSpliterator<E>( in spliterator()
DCollection.java724 return Spliterators.spliterator(this, 0); in spliterator()
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DIntNodeTest.java29 import java.util.Spliterators;
51 nodes.add(degenerateTree(Spliterators.iterator(Arrays.spliterator(array)))); in createSizes()
DLongNodeTest.java29 import java.util.Spliterators;
51 nodes.add(degenerateTree(Spliterators.iterator(Arrays.spliterator(array)))); in createSizes()
DDoubleNodeTest.java29 import java.util.Spliterators;
51 nodes.add(degenerateTree(Spliterators.iterator(Arrays.spliterator(array)))); in createSizes()

123