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

Method allDownwardsFrom

src/main/java/fieldbox/boxes/Box.java:291–299  ·  view source on GitHub ↗

returns direction that goes downwards from here, but both downwards and upwards from everywhere else. This is good for getting everything _below_ a point in the graph

()

Source from the content-addressed store, hash-verified

289
290 /**
291 * returns direction that goes downwards from here, but both downwards and upwards from everywhere else. This is good for getting everything _below_ a point in the graph
292 */
293 @HiddenInAutocomplete
294 public Function<Box, Collection<Box>> allDownwardsFrom() {
295 Function<Box, Collection<Box>> b = both();
296 return x -> {
297 if (x == this)
298 return x.children();
299 else return b.apply(x);
300 };
301 }
302

Callers 15

registerCommandsMethod · 0.95
DrawingMethod · 0.80
selRightMethod · 0.80
selAllRightMethod · 0.80
selLeftMethod · 0.80
selAllLeftMethod · 0.80
selAboveMethod · 0.80
selAllAboveMethod · 0.80
selBelowMethod · 0.80
selAllBelowMethod · 0.80
goModalMethod · 0.80
DeleteMethod · 0.80

Calls 3

bothMethod · 0.95
childrenMethod · 0.80
applyMethod · 0.65

Tested by

no test coverage detected