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

Method call

src/main/java/fieldbox/boxes/Box.java:237–241  ·  view source on GitHub ↗
(Function<G, T> f, Class<G> guard, Function<Box, Collection<Box>> direction)

Source from the content-addressed store, hash-verified

235 public <T> Optional<Box> where(Dict.Prop<T> find) {
236 return whereHas(find, upwards()).findFirst();
237 }
238
239 @HiddenInAutocomplete
240 public <G, T> Stream<T> call(Function<G, T> f, Class<G> guard, Function<Box, Collection<Box>> direction) {
241 return breadthFirst(direction).filter(x -> guard.isInstance(x))
242 .map(x -> f.apply((G) x));
243 }
244

Callers 15

oFunction · 0.45
eFunction · 0.45
postal.min.jsFile · 0.45
pFunction · 0.45
sFunction · 0.45
isArgumentsFunction · 0.45
objEquivFunction · 0.45
expectedExceptionFunction · 0.45
jshint.jsFile · 0.45
formatValueFunction · 0.45
formatErrorFunction · 0.45

Calls 4

breadthFirstMethod · 0.95
upwardsMethod · 0.95
applyMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected