(Dict.Prop<T> find, Function<Box, Collection<Box>> direction)
| 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 |
nothing calls this directly
no test coverage detected