Package org.team1540.rooster.functional
Interface Input<T>
-
- Type Parameters:
T
- The type of the input.
- All Superinterfaces:
Supplier<T>
- All Known Implementing Classes:
AdvancedArcadeJoystickInput
,ProfileInput
,SimpleJoystickInput
- 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 Input<T> extends Supplier<T>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Executable
then(Consumer<T> c)
Creates a newExecutable
that, when run, applies the providedConsumer
(orOutput
) to thisInput
's output.default <R> Input<R>
then(Function<T,R> f)
-
-
-
Method Detail
-
then
default Executable then(Consumer<T> c)
Creates a newExecutable
that, when run, applies the providedConsumer
(orOutput
) to thisInput
's output.- Parameters:
c
- TheConsumer
(orOutput
to use.- Returns:
- A new
Executable
as described above.
-
-