Interface OptCfg.Param

Enclosing class:
OptCfg
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 OptCfg.Param
Is the functional interface for the constructor parameters like named parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    argInHelp(String argInHelp)
    Is the static method to set the argInHelp field like a named parameter.
    defaults(String... defaults)
    Is the static method to set the defaults field like a named parameter.
    defaults(List<String> defaults)
    Is the static method to set the defaults field like a named parameter.
    desc(String desc)
    Is the static method to set the desc field like a named parameter.
    hasArg(boolean hasArg)
    Is the static method to set the hasArg field like a named parameter.
    isArray(boolean isArray)
    Is the static method to set the isArray field like a named parameter.
    names(String... names)
    Is the static method to set the names field like a named parameter.
    names(List<String> names)
    Is the static method to set the names field like a named parameter.
    void
    setTo(Object init)
    Sets a field value of OptCfg.Init object that has same fields with OptCfg object and is used to initialized it.
    storeKey(String storeKey)
    Is the static method to set the storeKey field like a named parameter.
    validator(Validator validator)
    Is the static method to set the validator field like a named parameter.
  • Method Details

    • setTo

      void setTo(Object init)
      Sets a field value of OptCfg.Init object that has same fields with OptCfg object and is used to initialized it.
      Parameters:
      init - An object to initialize OptCfg object.
    • storeKey

      static OptCfg.Param storeKey(String storeKey)
      Is the static method to set the storeKey field like a named parameter.
      Parameters:
      storeKey - The value of the storeKey field.
      Returns:
      The OptCfg.Param object to set the storeKey field of the OptCfg instance.
    • names

      static OptCfg.Param names(String... names)
      Is the static method to set the names field like a named parameter.
      Parameters:
      names - The string array of the names field.
      Returns:
      The names(java.lang.String...) object to set the names field of the OptCfg instance.
    • names

      static OptCfg.Param names(List<String> names)
      Is the static method to set the names field like a named parameter.
      Parameters:
      names - The string list of the names field.
      Returns:
      The names(java.lang.String...) object to set the names field of the OptCfg instance.
    • hasArg

      static OptCfg.Param hasArg(boolean hasArg)
      Is the static method to set the hasArg field like a named parameter.
      Parameters:
      hasArg - The value of the hasArg field.
      Returns:
      The OptCfg.Param object to set the hasArg field of the OptCfg instance.
    • isArray

      static OptCfg.Param isArray(boolean isArray)
      Is the static method to set the isArray field like a named parameter.
      Parameters:
      isArray - The value of the isArray field.
      Returns:
      The OptCfg.Param object to set the isArray field of the OptCfg instance.
    • defaults

      static OptCfg.Param defaults(String... defaults)
      Is the static method to set the defaults field like a named parameter.
      Parameters:
      defaults - The string array of the defaults field.
      Returns:
      The OptCfg.Param object to set the defaults field of the OptCfg instance.
    • defaults

      static OptCfg.Param defaults(List<String> defaults)
      Is the static method to set the defaults field like a named parameter.
      Parameters:
      defaults - The string list of the defaults field.
      Returns:
      The OptCfg.Param object to set the defaults field of the OptCfg instance.
    • desc

      static OptCfg.Param desc(String desc)
      Is the static method to set the desc field like a named parameter.
      Parameters:
      desc - The value of the desc field.
      Returns:
      The OptCfg.Param object to set the desc field of the OptCfg instance.
    • argInHelp

      static OptCfg.Param argInHelp(String argInHelp)
      Is the static method to set the argInHelp field like a named parameter.
      Parameters:
      argInHelp - The value of the argInHelp field.
      Returns:
      The OptCfg.Param object to set the argInHelp field of the OptCfg instance.
    • validator

      static OptCfg.Param validator(Validator validator)
      Is the static method to set the validator field like a named parameter.
      Parameters:
      validator - A Validator object.
      Returns:
      The OptCfg.Param object to set the validator field of the OptCfg instance.