(Consumer<Apple2e> c)
| 86 | } |
| 87 | |
| 88 | public static void withComputer(Consumer<Apple2e> c) { |
| 89 | Apple2e computer = getComputer(); |
| 90 | if (computer != null) { |
| 91 | c.accept(computer); |
| 92 | } else { |
| 93 | System.err.println("No computer available!"); |
| 94 | Thread.dumpStack(); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | public static <T> T withComputer(Function<Apple2e, T> f, T defaultValue) { |
| 99 | Apple2e computer = getComputer(); |
no test coverage detected