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 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 args to Args that are compliant with one of fargsList.
        Throws:
        IllegalArgumentException - When no conversion is possible.