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

Method next

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

Source from the content-addressed store, hash-verified

211 .filter(x -> x != null)
212 .findFirst();
213 }
214
215 @HiddenInAutocomplete
216 public <T> Optional<T> next(Dict.Prop<T> find, Function<Box, Collection<Box>> direction) {
217 if (properties.has(find)) return Optional.of(properties.get(find));
218 return breadthFirst(direction).map(x -> x.properties.get(find))
219 .filter(x -> x != null)
220 .skip(1)
221 .findFirst();
222 }
223

Callers

nothing calls this directly

Calls 4

breadthFirstMethod · 0.95
getMethod · 0.65
hasMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected