Interface IterationCallback<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IterationCallback<T>
A callback that can be passed to methods in extension stores (e.g.
SubscriptionStore) to lazily iterate over
a potentially large result set.- Since:
- 4.2.0, CE 2020.1
-
Method Summary
Modifier and Type Method Description voiditerate(@NotNull IterationContext context, T value)This method is called for every result that is part of the iteration.
-
Method Details
-
iterate
This method is called for every result that is part of the iteration.- Parameters:
context- AnIterationContextthat allows for interaction with the overlaying iteration mechanism.value- The value for this single iteration.- Since:
- 4.2.0, CE 2020.1
-