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.
@FunctionalInterface public static interface Factories.ArgsConverter
Interface used to convert arguments.- Author:
- Damien Carbonne
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Argsapply(Args args, List<FormalArgs> fargsList)Converts arguments.
-
-
-
Method Detail
-
apply
Args apply(Args args, List<FormalArgs> fargsList)
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.
-
-