Class CompoundArgument<T extends Tuple,​C,​O>

    • Constructor Detail

      • CompoundArgument

        public CompoundArgument​(boolean required,
                                @NonNull java.lang.String name,
                                @NonNull Tuple names,
                                @NonNull Tuple parserTuple,
                                @NonNull Tuple types,
                                @NonNull java.util.function.BiFunction<@NonNull C,​@NonNull T,​@NonNull O> mapper,
                                @NonNull java.util.function.Function<@NonNull java.lang.Object[],​@NonNull T> tupleFactory,
                                @NonNull io.leangen.geantyref.TypeToken<O> valueType)
        Construct a Compound Argument
        Parameters:
        required - Whether or not the argument is required
        name - The argument name
        names - Names of the sub-arguments (in order)
        parserTuple - The sub arguments
        types - Types of the sub-arguments (in order)
        mapper - Mapper that maps the sub-arguments to the output type
        tupleFactory - Function to use when creating tuple
        valueType - The output type
    • Method Detail

      • getParserTuple

        public @NonNull Tuple getParserTuple()
        Get the tuple containing the internal parsers
        Returns:
        Internal parsers
      • getNames

        public @NonNull Tuple getNames()
        Get the argument names
        Returns:
        Argument names
      • getTypes

        public @NonNull Tuple getTypes()
        Get the parser types
        Returns:
        Parser types