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 Executablethen(Consumer<T> c)Creates a newExecutablethat, 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 newExecutablethat, when run, applies the providedConsumer(orOutput) to thisInput's output.- Parameters:
c- TheConsumer(orOutputto use.- Returns:
- A new
Executableas described above.
-
-