Home
last modified time | relevance | path

Searched refs:spliteratorSupplier (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DAbstractListTest.java133 Supplier<Spliterator<Integer>> spliteratorSupplier = () -> listSupplier.get().spliterator(); in checkSpliteratorOfRandomAccessList() local
139 SpliteratorTester.runBasicIterationTests(spliteratorSupplier.get(), expectedList); in checkSpliteratorOfRandomAccessList()
140 SpliteratorTester.runBasicSplitTests(spliteratorSupplier.get(), expectedList, in checkSpliteratorOfRandomAccessList()
142 SpliteratorTester.testSpliteratorNPE(spliteratorSupplier.get()); in checkSpliteratorOfRandomAccessList()
144 assertTrue(spliteratorSupplier.get().hasCharacteristics( in checkSpliteratorOfRandomAccessList()
147 SpliteratorTester.runSizedTests(spliteratorSupplier.get(), size /* expected size */); in checkSpliteratorOfRandomAccessList()
148 if (spliteratorSupplier.get().trySplit() != null) { in checkSpliteratorOfRandomAccessList()
149 SpliteratorTester.runSubSizedTests(spliteratorSupplier.get(), size); in checkSpliteratorOfRandomAccessList()
/libcore/ojluni/src/main/java/java/util/stream/
DStreamSpliterators.java78 private Supplier<Spliterator<P_IN>> spliteratorSupplier; field in StreamSpliterators.AbstractWrappingSpliterator
116 Supplier<Spliterator<P_IN>> spliteratorSupplier, in AbstractWrappingSpliterator() argument
119 this.spliteratorSupplier = spliteratorSupplier; in AbstractWrappingSpliterator()
132 this.spliteratorSupplier = null; in AbstractWrappingSpliterator()
142 spliterator = spliteratorSupplier.get(); in init()
143 spliteratorSupplier = null; in init()