Stay organized with collections
Save and categorize content based on your preferences.
Greedy
@FunctionalInterface interface Greedy<A : Any!, T : Any!, R : Any!> : Gatherer.Integrator<A, T, R>
Greedy Integrators consume all their input, and may only relay that the downstream does not want more elements.
Summary
Inherited functions |
From class Integrator
Boolean |
integrate(state: A, element: T, downstream: Gatherer.Downstream<in R>!)
Performs an action given: the current state, the next element, and a downstream object; potentially inspecting and/or updating the state, optionally sending any number of elements downstream -- and then returns whether more elements are to be consumed or not.
|
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[],[]]