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

Method find

src/main/java/fieldbox/boxes/Box.java:199–203  ·  view source on GitHub ↗
(Dict.Prop<T> find, Function<Box, Collection<Box>> direction)

Source from the content-addressed store, hash-verified

197 public <T> Stream<Box> whereHas(Dict.Prop<T> find, Function<Box, Collection<Box>> direction) {
198 return breadthFirst(direction).filter(x -> x.properties.has(find));
199 }
200
201 @HiddenInAutocomplete
202 public <T> Stream<T> find(Dict.Prop<T> find, Function<Box, Collection<Box>> direction) {
203 return breadthFirst(direction).map(x -> x.properties.get(find))
204 .filter(x -> x != null);
205 }
206

Callers 15

dispatchMethod · 0.95
MarkingMenusMethod · 0.95
asMap_newMethod · 0.95
dispatchMethod · 0.95
dispatchMethod · 0.95
KeyboardShortcutsMethod · 0.95
checkForDeletionMethod · 0.95
updateMethod · 0.95
MakeNewTextEditorMethod · 0.95
makeLocalsMethod · 0.45
wrapMethod · 0.45
writeMethod · 0.45

Calls 3

breadthFirstMethod · 0.95
getMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected