(Prop<T> key)
| 446 | } |
| 447 | |
| 448 | @SuppressWarnings("unchecked") |
| 449 | public <T> T getOrConstruct(Prop<T> key) { |
| 450 | |
| 451 | Prop<T> cc = key.findCanon(); |
| 452 | if (cc != null && cc.autoConstructor != null) { |
| 453 | return (T) dictionary.computeIfAbsent(key, k -> cc.autoConstructor.get()); |
| 454 | } |
| 455 | return get(key); |
| 456 | } |
| 457 | |
| 458 | public <T> T getOr(Prop<T> key, Supplier<T> def) { |
| 459 | T t = get(key); |
no test coverage detected