(Device d)
| 71 | } |
| 72 | |
| 73 | public void addChildDevice(Device d) { |
| 74 | if (d == null || children.contains(d) || d.equals(this)) { |
| 75 | return; |
| 76 | } |
| 77 | d.parentDevice = this; |
| 78 | children.add(d); |
| 79 | d.attach(); |
| 80 | childrenArray = children.toArray(Device[]::new); |
| 81 | updateTickHandler(); |
| 82 | } |
| 83 | |
| 84 | public void removeChildDevice(Device d) { |
| 85 | if (d == null) { |
no test coverage detected