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 newOutput
that applies the providedFunction
to the input before passing it to thisOutput
.default Executable
after(Supplier<T> i)
Creates a newExecutable
that, when run, applies thisOutput
to the providedSupplier
's (orInput
's) output.
-
-
-
Method Detail
-
after
default <I> Output<I> after(Function<I,T> f)
Creates a newOutput
that applies the providedFunction
to the input before passing it to thisOutput
.
-
after
default Executable after(Supplier<T> i)
Creates a newExecutable
that, when run, applies thisOutput
to the providedSupplier
's (orInput
's) output.- Parameters:
i
- TheSupplier
(orInput
to use.- Returns:
- A new
Executable
as described above.
-
-