Searched refs:Factory (Results 1 - 25 of 179) sorted by relevance

12345678

/openjdk10/langtools/test/tools/javac/lambda/
H A DLambdaConv22.java34 interface Factory<T> { T make(); } interface in class:LambdaConv22
39 Factory<U> fu1 = () -> u;
40 Factory<U> fu2 = this::make;
H A DMostSpecific14.java10 interface Factory<T> { T get(); } interface in class:MostSpecific14
12 void m1(Factory<Factory<Object>> f) {}
15 void m2(Factory<Factory<Number>> f) {}
18 void m3(Factory<Factory<Integer>> f) {}
25 m3(() -> () -> 23); // ok: choose Factory<Factory<Integer>>
29 m3(() -> this::getInteger); // ok: choose Factory<Factor
[all...]
H A DTargetType50.java35 interface Factory<F> { interface in class:TargetType50
43 <Y, S extends Sink<Y>> List<Y> m(Factory<S> factory) { return null; }
/openjdk10/nashorn/test/script/basic/
H A DJDK-8006304.js31 function Factory() { class
40 var a = new Factory();
H A DJDK-8158467.js32 var Factory = Java.type("jdk.nashorn.api.scripting.NashornScriptEngineFactory"); variable
33 var fac = new Factory();
/openjdk10/hotspot/test/compiler/c2/
H A DTest6837094.java32 * -XX:CompileCommand=compileonly,compiler.c2.Test6837094$Factory$1::getArray
33 * -XX:CompileCommand=compileonly,compiler.c2.Test6837094$Factory$2::getArray
44 private interface Factory<M extends Interface> { interface in class:Test6837094
45 Factory<Child0> Zero = new Factory<Child0>() {
49 Factory<Child1> One = new Factory<Child1>() {
64 Factory<I> factory, Set<Interface> s) {
77 collectIs(Factory.Zero, s);
78 collectIs(Factory
[all...]
/openjdk10/jdk/test/java/lang/Boolean/
H A DFactory.java30 public class Factory { class
/openjdk10/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DIterateTest.java39 import java.util.stream.TestData.Factory;
53 Factory.ofSupplier("ref.empty", () -> Stream.iterate(1, x -> x < 0, x -> x * 2))},
55 Factory.ofSupplier("ref.one", () -> Stream.iterate(1, x -> x < 2, x -> x * 2))},
57 Factory.ofSupplier("ref.ten", () -> Stream.iterate(1, x -> x < 1000, x -> x * 2))},
59 Factory.ofSupplier("ref.nullCheck", () -> Stream.iterate(10, Objects::nonNull, x -> x > 0 ? x - 1 : null))},
61 Factory.ofIntSupplier("int.empty", () -> IntStream.iterate(1, x -> x < 0, x -> x + 1))},
63 Factory.ofIntSupplier("int.one", () -> IntStream.iterate(1, x -> x < 2, x -> x + 1))},
65 Factory.ofIntSupplier("int.ten", () -> IntStream.iterate(1, x -> x <= 10, x -> x + 1))},
67 Factory.ofIntSupplier("int.divZero", () -> IntStream.iterate(5, x -> x != 0, x -> x - 1/x/2 - 1))},
69 Factory
[all...]
/openjdk10/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/
H A DContext.java79 * context.put(phaseKey, new Context.Factory<Phase>() {
110 public static interface Factory<T> { interface in class:Context
120 * {@literal Key<T> -> Factory<T> }
125 public <T> void put(Key<T> key, Factory<T> fac) {
136 if (data instanceof Factory<?>)
137 throw new AssertionError("T extends Context.Factory");
140 if (old != null && !(old instanceof Factory<?>) && old != data && data != null)
148 if (o instanceof Factory<?>) {
149 Factory<?> fac = (Factory<
[all...]
/openjdk10/langtools/src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/
H A DJavadocTodo.java30 import com.sun.tools.javac.util.Context.Factory;
46 context.put(todoKey, (Factory<Todo>)JavadocTodo::new);
/openjdk10/langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/
H A DJavadocTodo.java30 import com.sun.tools.javac.util.Context.Factory;
45 context.put(todoKey, (Factory<Todo>)JavadocTodo::new);
/openjdk10/hotspot/test/testlibrary/jittester/src/jdk/test/lib/jittester/factories/
H A DNothingFactory.java29 public class NothingFactory extends Factory<Nothing> {
H A DContinueFactory.java29 class ContinueFactory extends Factory<Continue> {
H A DFactory.java29 public abstract class Factory<T extends IRNode> { class
H A DBreakFactory.java29 class BreakFactory extends Factory<Break> {
H A DIRNodeBuilder.java120 public Factory<ArgumentDeclaration> getArgumentDeclarationFactory() {
124 public Factory<Operator> getArithmeticOperatorFactory() throws ProductionFailedException {
129 public Factory<ArrayCreation> getArrayCreationFactory() {
134 public Factory<ArrayElement> getArrayElementFactory() {
139 public Factory<ArrayExtraction> getArrayExtractionFactory() {
144 public Factory<Operator> getAssignmentOperatorFactory() {
149 public Factory<BinaryOperator> getBinaryOperatorFactory() throws ProductionFailedException {
218 public Factory<UnaryOperator> getUnaryOperatorFactory() throws ProductionFailedException {
245 public Factory<Block> getBlockFactory() {
253 public Factory<Brea
[all...]
H A DOperatorFactory.java28 public abstract class OperatorFactory<T extends Operator> extends Factory<T> {
H A DPrintVariablesFactory.java30 class PrintVariablesFactory extends Factory<PrintVariables> {
H A DSafeFactory.java30 public abstract class SafeFactory<T extends IRNode> extends Factory<T> {
/openjdk10/hotspot/test/testlibrary/jittester/src/jdk/test/lib/jittester/
H A DRule.java29 import jdk.test.lib.jittester.factories.Factory;
35 public class Rule<T extends IRNode> extends Factory<T> implements Comparable<Rule<T>> {
50 public void add(String ruleName, Factory<? extends T> factory) {
54 public void add(String ruleName, Factory<? extends T> factory, double weight) {
100 private class RuleEntry extends Factory<T> implements Comparable<RuleEntry> {
102 private final Factory<? extends T> factory;
105 private RuleEntry(String name, Factory<? extends T> factory, double weight) {
/openjdk10/jdk/src/java.smartcardio/share/classes/sun/security/smartcardio/
H A DSunPCSC.java57 return new SunPCSC.Factory(ctrParamObj);
75 "PC/SC", "sun.security.smartcardio.SunPCSC$Factory"));
81 public static final class Factory extends TerminalFactorySpi { class in class:SunPCSC
82 public Factory(Object obj) throws PCSCException { method in class:SunPCSC.Factory
/openjdk10/langtools/test/tools/javac/generics/inference/6365166/
H A DNewTest.java47 public <L extends List<? super A>,LF extends Factory<L>> L addOrCreate4(B b,L l,LF lf) {
55 public static class ListFactory<T> implements Factory<List<T>>{
60 public static interface Factory<T> { interface in class:NewTest
/openjdk10/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/
H A DSplittableRandomTest.java129 TestData.Factory.ofIntSupplier(
136 TestData.Factory.ofIntSupplier(
143 TestData.Factory.ofIntSupplier(
157 TestData.Factory.ofIntSupplier(
164 TestData.Factory.ofIntSupplier(
172 TestData.Factory.ofIntSupplier(
180 TestData.Factory.ofIntSupplier(
213 TestData.Factory.ofLongSupplier(
220 TestData.Factory.ofLongSupplier(
227 TestData.Factory
[all...]
/openjdk10/langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/
H A DClassFile.java47 return read(file.toPath(), new Attribute.Factory());
52 return read(input, new Attribute.Factory());
55 public static ClassFile read(Path input, Attribute.Factory attributeFactory)
62 public static ClassFile read(File file, Attribute.Factory attributeFactory)
69 return new ClassFile(in, new Attribute.Factory());
72 public static ClassFile read(InputStream in, Attribute.Factory attributeFactory)
77 ClassFile(InputStream in, Attribute.Factory attributeFactory) throws IOException, ConstantPoolException {
/openjdk10/langtools/test/tools/javac/lambda/lambdaExecution/
H A DLambdaTranslationTest2.java93 interface Factory<T> { interface in class:LambdaTranslationTest2
97 interface StringFactory extends Factory<String> { }
99 interface StringFactory2 extends Factory<String> {
104 Factory<String> of = () -> "y";
105 Factory<?> ef = () -> "z";
108 assertEquals("y", ((Factory<?>) of).make());
109 assertEquals("y", ((Factory) of).make());
112 assertEquals("z", ((Factory) ef).make());
119 assertEquals("x", ((Factory<String>) sf).make());
120 assertEquals("x", ((Factory<
[all...]

Completed in 185 milliseconds

12345678