Lines Matching defs:Factory
79 * context.put(phaseKey, new Context.Factory<Phase>() {
110 public static interface Factory<T> {
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<?>)o;
151 if (o instanceof Factory<?>)
152 throw new AssertionError("T extends Context.Factory");
169 private final Map<Key<?>,Factory<?>> ft = new HashMap<>();
193 public <T> void put(Class<T> clazz, Factory<T> fac) {