bee
Task.ValuedTaskReference<T, R>
T, R>TThe type of the
Taskinterface containing the referenced command.RThe type of the value returned by the referenced command.
Represents a type-safe reference to a task command that returns a value,
typically implemented using a method reference (e.g., MyTask::getBuildResult).
This functional interface serves as a marker and must be Serializable.
Function to indicate that it accepts a task instance and produces a
result. It also extends TaskReference for consistency.
accept(Ttask)void
Ttask)Ttask |
The task instance on which to execute the command. |
Provides a default implementation for the Consumer#accept(Object) method
inherited via TaskReference. It simply calls the Function#apply(Object)
method, effectively executing the valued task command but discarding its return value.