MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / detach

Method detach

src/main/java/field/graphics/Scene.java:141–151  ·  view source on GitHub ↗

Disconnects a Perform from this Scene. Care has been taken to ensure you can do this while the internalScene is being traversed.

(Consumer<Integer> p)

Source from the content-addressed store, hash-verified

139 * Disconnects a Perform from this Scene. Care has been taken to ensure you can do this while the internalScene is being traversed.
140 */
141 public void detach(Consumer<Integer> p) {
142
143 List<Boolean> removed = internalScene.values()
144 .stream()
145 .map(x -> x.remove(p))
146 .filter(x -> x)
147 .collect(Collectors.toList());
148 if (removed.size() == 0) {
149 }
150
151 }
152
153 /**
154 * Disconnects a Perform from this Scene. Care has been taken to ensure you can do this while the internalScene is being traversed.

Callers 15

attachMethod · 0.95
updateMethod · 0.95
updateCompletionsFunction · 0.80
highlightRunAndCloseFunction · 0.80
sbFunction · 0.80
tbFunction · 0.80
defineOptionsFunction · 0.80
defineOptionsFunction · 0.80
stopMethod · 0.80
deleteMethod · 0.80
deleteMethod · 0.80
loadedMethod · 0.80

Calls 5

collectMethod · 0.80
mapMethod · 0.45
streamMethod · 0.45
removeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected