A (int pass, Consumer ) tuple can be effectively cast as a Perform. The int says what pass the consumer should be run for, and the consumer is called for that pass
(int pass, Consumer<Integer> p)
| 83 | * A (int pass, Consumer<Integer>) tuple can be effectively cast as a Perform. The int says what pass the consumer should be run for, and the consumer is called for that pass |
| 84 | */ |
| 85 | public boolean attach(int pass, Consumer<Integer> p) { |
| 86 | Set<Consumer<Integer>> c = internalScene.get(pass); |
| 87 | if (c == null) internalScene.put(pass, c = new LinkedHashSet<Consumer<Integer>>()); |
| 88 | return c.add(p); |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * A (int pass, String tag, Consumer<Integer>) tuple can be effectively cast as a Perform. The int says what pass the consumer should be run for, and the consumer is called for that pass. |
no test coverage detected