Lines Matching defs:Key
49 * protected static final Context.Key<Phase> phaseKey =
50 * new Context.Key<Phase>();
102 public static class Key<T> {
118 * Key<T> -> T or Key<T> -> Factory<T> */
119 private Map<Key<?>,Object> ht = new HashMap<Key<?>,Object>();
122 public <T> void put(Key<T> key, Factory<T> fac) {
132 public <T> void put(Key<T> key, T data) {
142 public <T> T get(Key<T> key) {
155 * Since we found a key of type Key<T>, the value must
166 private Map<Key<?>,Factory<?>> ft = new HashMap<Key<?>,Factory<?>>();
175 * The key table, providing a unique Key<T> for each Class<T>.
177 private Map<Class<?>, Key<?>> kt = new HashMap<Class<?>, Key<?>>();
179 private <T> Key<T> key(Class<T> clss) {
181 Key<T> k = uncheckedCast(kt.get(clss));
183 k = new Key<T>();