Package org.team1540.rooster.functional
Interface Output<T>
-
- Type Parameters:
T- The type of the output.
- All Superinterfaces:
Consumer<T>
- All Known Implementing Classes:
CTREOutput
- 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 Output<T> extends Consumer<T>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <I> Output<I>after(Function<I,T> f)Creates a newOutputthat applies the providedFunctionto the input before passing it to thisOutput.default Executableafter(Supplier<T> i)Creates a newExecutablethat, when run, applies thisOutputto the providedSupplier's (orInput's) output.
-
-
-
Method Detail
-
after
default <I> Output<I> after(Function<I,T> f)
Creates a newOutputthat applies the providedFunctionto the input before passing it to thisOutput.
-
after
default Executable after(Supplier<T> i)
Creates a newExecutablethat, when run, applies thisOutputto the providedSupplier's (orInput's) output.- Parameters:
i- TheSupplier(orInputto use.- Returns:
- A new
Executableas described above.
-
-