Package cdc.args
Interface Factories.ArgsConverter
- Enclosing class:
- Factories
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface used to convert arguments.
- Author:
- Damien Carbonne
-
Method Summary
Modifier and TypeMethodDescriptionapply(Args args, List<FormalArgs> fargsList) Converts arguments.
-
Method Details
-
apply
Converts arguments.- Parameters:
args- The arguments to convert.fargsList- A list of formal arguments tuples. The result should match one of them.- Returns:
- The conversion of
argsto Args that are compliant with one offargsList. - Throws:
IllegalArgumentException- When no conversion is possible.
-