Enum Class DefaultSettings

java.lang.Object
java.lang.Enum<DefaultSettings>
net.sourceforge.argparse4j.DefaultSettings
All Implemented Interfaces:
Serializable, Comparable<DefaultSettings>, Constable

public enum DefaultSettings extends Enum<DefaultSettings>

Use one of these values with ArgumentParsers.newFor(String, DefaultSettings) to specify of which version the default settings must be used. The chosen defaults will continue to be used by newer versions of argparse4j, ensuring that the behavior of the application does not change when argparse4j is upgraded.

  • Enum Constant Details

  • Constructor Details

    • DefaultSettings

      private DefaultSettings()
  • Method Details

    • values

      public static DefaultSettings[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DefaultSettings valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • apply

      abstract void apply(ArgumentParserBuilder builder)