Home
last modified time | relevance | path

Searched refs:Factory (Results 1 – 23 of 23) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DInfiniteStreamWithLimitOpTest.java141 return TestData.Factory.ofSupplier(
151 return TestData.Factory.ofIntSupplier(
161 return TestData.Factory.ofLongSupplier(
171 return TestData.Factory.ofDoubleSupplier(
301 return TestData.Factory.ofLongSupplier(
360 TestData.OfRef<Long> generator = TestData.Factory.ofSupplier(
371 TestData.OfInt generator = TestData.Factory.ofIntSupplier(
382 TestData.OfLong generator = TestData.Factory.ofLongSupplier(
393 TestData.OfDouble generator = TestData.Factory.ofDoubleSupplier(
407 TestData.OfRef<Long> iterator = TestData.Factory.ofSupplier(
[all …]
DStreamBuilderTest.java77 TestData.OfRef<Integer> data = TestData.Factory.ofSupplier("[0, 1)", in testSingleton()
121 TestData.OfRef<Integer> data = TestData.Factory.ofSupplier(String.format("[0, %d)", size), in testStreamBuilder()
139 TestData.OfInt data = TestData.Factory.ofIntSupplier("[0, 1)", in testIntSingleton()
183 TestData.OfInt data = TestData.Factory.ofIntSupplier(String.format("[0, %d)", size), in testIntStreamBuilder()
201 TestData.OfLong data = TestData.Factory.ofLongSupplier("[0, 1)", in testLongSingleton()
245 TestData.OfLong data = TestData.Factory.ofLongSupplier(String.format("[0, %d)", size), in testLongStreamBuilder()
263 … TestData.OfDouble data = TestData.Factory.ofDoubleSupplier("[0, 1)", () -> DoubleStream.of(1)); in testDoubleSingleton()
306 TestData.OfDouble data = TestData.Factory.ofDoubleSupplier(String.format("[0, %d)", size), in testDoubleStreamBuilder()
DRangeTest.java52 withData(TestData.Factory.ofSupplier( in testInfiniteRangeFindFirst()
124 return TestData.Factory.ofIntSupplier("int range", () -> IntStream.range(start, end)); in intRangeData()
128 … return TestData.Factory.ofIntSupplier("int rangeClosed", () -> IntStream.rangeClosed(start, end)); in intRangeClosedData()
137 withData(TestData.Factory.ofIntSupplier( in testIntInfiniteRangeLimit()
207 return TestData.Factory.ofLongSupplier("long range", () -> LongStream.range(start, end));
211 …return TestData.Factory.ofLongSupplier("long rangeClosed", () -> LongStream.rangeClosed(start, end… in longRangeClosedData()
220 withData(TestData.Factory.ofLongSupplier( in testLongInfiniteRangeLimit()
DForEachOpTest.java89 TestData.OfRef<Integer> data = TestData.Factory.ofCollection("[1, 10000]", input);
136 TestData.OfInt data = TestData.Factory.ofIntSupplier("[1, 10000]",
184 TestData.OfLong data = TestData.Factory.ofLongSupplier("[1, 10000]",
232 TestData.OfDouble data = TestData.Factory.ofDoubleSupplier("[1, 10000]",
DExplodeOpTest.java67 … exerciseOps(TestData.Factory.ofArray("stringsArray", stringsArray), s -> s.flatMap(flattenChars)); in testFlatMap()
68 …exerciseOps(TestData.Factory.ofArray("LONG_STRING", new String[] {LONG_STRING}), s -> s.flatMap(fl… in testFlatMap()
DDistinctOpTest.java183 TestData<Integer, Stream<Integer>> data = TestData.Factory.ofCollection( in testStable()
DToArrayOpTest.java103 TestData.Factory.ofCollection("", Arrays.asList(1.1, 2.2, 3.4, 4.4)), in testAsArrayWithType()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DStreamTestDataProvider.java170 return new Object[] { description, TestData.Factory.ofArray(description, data)}; in arrayDataDescr()
174 return new Object[] { description, TestData.Factory.ofSupplier(description, supplier)}; in streamDataDescr()
178 return new Object[] { description, TestData.Factory.ofCollection(description, data)}; in collectionDataDescr()
182 return new Object[] { description, TestData.Factory.ofSpinedBuffer(description, data)}; in sbDataDescr()
DIntStreamTestDataProvider.java87 name, TestData.Factory.ofArray("array:" + name, ints)}); in list.add()
94 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add()
140 return new Object[] { description, TestData.Factory.ofIntSupplier(description, s) }; in streamDataDescr()
DLongStreamTestDataProvider.java87 TestData.Factory.ofArray("array:" + name, longs)}); in list.add()
94 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add()
140 return new Object[] { description, TestData.Factory.ofLongSupplier(description, s) }; in streamDataDescr()
DOpTestCase.java187 …TestData.OfRef<T> data1 = TestData.Factory.ofCollection("Collection of type " + data.getClass().ge… in exerciseOps()
193 …TestData.OfRef<T> data1 = TestData.Factory.ofCollection("Collection of type " + data.getClass().ge… in exerciseOps()
200 return withData(TestData.Factory.ofArray("int array", data)).stream(m).exercise(); in exerciseOps()
204 TestData.OfInt data1 = TestData.Factory.ofArray("int array", data); in exerciseOps()
597 … = TestData.Factory.ofCollection("Collection of type " + data.getClass().getName(), data); in exerciseTerminalOps()
DTestData.java77 public static class Factory { class
/libcore/ojluni/src/main/java/java/lang/reflect/
DWeakCache.java122 Factory factory = null; in get()
138 factory = new Factory(key, parameter, subKey, valuesMap); in get()
198 private final class Factory implements Supplier<V> { class in WeakCache
205 Factory(K key, P parameter, Object subKey, in Factory() method in WeakCache.Factory
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DStreamTestDataProvider.java176 return new Object[] { description, TestData.Factory.ofArray(description, data)}; in arrayDataDescr()
180 return new Object[] { description, TestData.Factory.ofSupplier(description, supplier)}; in streamDataDescr()
184 return new Object[] { description, TestData.Factory.ofCollection(description, data)}; in collectionDataDescr()
188 return new Object[] { description, TestData.Factory.ofSpinedBuffer(description, data)}; in sbDataDescr()
DLongStreamTestDataProvider.java91 TestData.Factory.ofArray("array:" + name, longs)}); in list.add()
98 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add()
144 return new Object[] { description, TestData.Factory.ofLongSupplier(description, s) }; in streamDataDescr()
DDoubleStreamTestDataProvider.java92 TestData.Factory.ofArray("array:" + name, doubles)}); in list.add()
99 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add()
DOpTestCase.java188 …TestData.OfRef<T> data1 = TestData.Factory.ofCollection("Collection of type " + data.getClass().ge… in exerciseOps()
194 …TestData.OfRef<T> data1 = TestData.Factory.ofCollection("Collection of type " + data.getClass().ge… in exerciseOps()
201 return withData(TestData.Factory.ofArray("int array", data)).stream(m).exercise(); in exerciseOps()
205 TestData.OfInt data1 = TestData.Factory.ofArray("int array", data); in exerciseOps()
598 … = TestData.Factory.ofCollection("Collection of type " + data.getClass().getName(), data); in exerciseTerminalOps()
DTestData.java78 public static class Factory { class
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DFlagOpTest.java110 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsClearAllSet()
149 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsSetAllClear()
183 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsSetSequence()
219 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsClearSequence()
245 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsSizedOrderedParallelCollect()
DLongNodeTest.java153 TestData.OfLong data = TestData.Factory.ofNode("Node", n); in testStreams()
DIntNodeTest.java153 TestData.OfInt data = TestData.Factory.ofNode("Node", n); in testStreams()
DDoubleNodeTest.java153 TestData.OfDouble data = TestData.Factory.ofNode("Node", n); in testStreams()
DNodeTest.java129 TestData<Integer, Stream<Integer>> data = TestData.Factory.ofRefNode("Node", n); in testStreams()