forEach

void forEach(Consumer<EntityType> consumer)

Executes this query and passes each result to the specified consumer

Parameters

consumer

the consumer to accept each result