equal
deleted
inserted
replaced
34 * This code and its internal interfaces are subject to change or |
34 * This code and its internal interfaces are subject to change or |
35 * deletion without notice.</b> |
35 * deletion without notice.</b> |
36 */ |
36 */ |
37 public class Names { |
37 public class Names { |
38 |
38 |
39 public static final Context.Key<Names> namesKey = new Context.Key<Names>(); |
39 public static final Context.Key<Names> namesKey = new Context.Key<>(); |
40 |
40 |
41 public static Names instance(Context context) { |
41 public static Names instance(Context context) { |
42 Names instance = context.get(namesKey); |
42 Names instance = context.get(namesKey); |
43 if (instance == null) { |
43 if (instance == null) { |
44 instance = new Names(context); |
44 instance = new Names(context); |