Class ConfigOptionBuilder

    • Constructor Detail

      • ConfigOptionBuilder

        public ConfigOptionBuilder​(java.lang.String longName)
    • Method Detail

      • setCommandLineOptionWithArgument

        public ConfigOptionBuilder setCommandLineOptionWithArgument​(CommandLineOption commandLineOption,
                                                                    StringConverter converter)
        if you want to parse an argument, you need a converter from String to Object
        Parameters:
        commandLineOption - specification of the command line options
        converter - how to convert your String value to a castable Object
      • setCommandLineOptionWithoutArgument

        public ConfigOptionBuilder setCommandLineOptionWithoutArgument​(CommandLineOption commandLineOption,
                                                                       java.lang.Object value)
        if you don't have an argument, choose the value that is going to be inserted into the map instead
        Parameters:
        commandLineOption - specification of the command line options
        value - the value that is going to be inserted into the map instead of the argument
      • setOptional

        public ConfigOptionBuilder setOptional()
        if the option is optional, you don't have to use it
      • setDefaultWith

        public ConfigOptionBuilder setDefaultWith​(java.lang.Object defaultValue)
        if you have a default, it's automatically optional
      • setStringConverter

        public ConfigOptionBuilder setStringConverter​(StringConverter converter)
        if you want to convert some string to an object, you have an argument to parse