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 aFunction
adding additional composition methods.Processor
can be used exactly likeFunction
(and library functions should not takeProcessors
as method parameters, instead usingFunction
). However, library functions should return aProcessor
where they would normally return aFunction
.