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

Method whereHas

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

Source from the content-addressed store, hash-verified

192 return breadthFirst(direction).map(x -> x.properties.get(find))
193 .filter(x -> x != null);
194 }
195
196 @HiddenInAutocomplete
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

Callers 1

whereMethod · 0.95

Calls 2

breadthFirstMethod · 0.95
hasMethod · 0.45

Tested by

no test coverage detected