Package org.team1540.rooster.functional
Interface Processor<T,R>
-
- Type Parameters:
T- The type of the output.
- All Superinterfaces:
Function<T,R>
- All Known Implementing Classes:
FeedForwardProcessor,FeedForwardToVelocityProcessor,HeadingPIDProcessor,HeadingTransformProcessor,PIDProcessor,TurningRatePIDProcessor,UnitScaler
- 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 Processor<T,R> extends Function<T,R>
Extension of aFunctionadding additional composition methods.Processorcan be used exactly likeFunction(and library functions should not takeProcessorsas method parameters, instead usingFunction). However, library functions should return aProcessorwhere they would normally return aFunction.