(Prop<T> key)
| 433 | Function<Prop, Object> failure = null; |
| 434 | |
| 435 | @SuppressWarnings("unchecked") |
| 436 | public <T> T get(Prop<T> key) { |
| 437 | Object o = dictionary.get(key); |
| 438 | if (failure != null && o == null && !dictionary.containsKey(key)) |
| 439 | return (T) failure.apply(key); |
| 440 | return (T) o; |
| 441 | } |
| 442 | |
| 443 | public Dict setFailure(Function<Prop, Object> failure) { |
| 444 | this.failure = failure; |
no test coverage detected