Class LongOption

    • Constructor Detail

      • LongOption

        protected LongOption​(OptionManager owner,
                             String commandline,
                             String property,
                             Object defValue,
                             UserMode minUserMode)
        Initializes the option. Will always output the default value.
        Parameters:
        owner - the owner of this option
        commandline - the commandline string to identify the option (no leading dash)
        property - the name of bean property
        defValue - the default value, if null then the owner's current state is used
        minUserMode - the minimum user mode before showing this option
      • LongOption

        protected LongOption​(OptionManager owner,
                             String commandline,
                             String property,
                             Object defValue,
                             boolean outputDefValue,
                             UserMode minUserMode)
        Initializes the option.
        Parameters:
        owner - the owner of this option
        commandline - the commandline string to identify the option (no leading dash)
        property - the name of bean property
        defValue - the default value, if null then the owner's current state is used
        outputDefValue - whether to output the default value or not
        minUserMode - the minimum user mode before showing this option
      • LongOption

        protected LongOption​(OptionManager owner,
                             String commandline,
                             String property,
                             Object defValue,
                             Long lower,
                             Long upper,
                             UserMode minUserMode)
        Initializes the option. Will always output the default value.
        Parameters:
        owner - the owner of this option
        commandline - the commandline string to identify the option
        property - the name of bean property
        defValue - the default value, if null then the owner's current state is used
        lower - the lower bound (incl; only for numeric values), use null to use unbounded
        upper - the upper bound (incl; only for numeric values), use null to use unbounded
        minUserMode - the minimum user mode before showing this option
      • LongOption

        protected LongOption​(OptionManager owner,
                             String commandline,
                             String property,
                             Object defValue,
                             boolean outputDefValue,
                             Long lower,
                             Long upper,
                             UserMode minUserMode)
        Initializes the option.
        Parameters:
        owner - the owner of this option
        commandline - the commandline string to identify the option
        property - the name of bean property
        defValue - the default value, if null then the owner's current state is used
        outputDefValue - whether to output the default value or not
        lower - the lower bound (incl; only for numeric values), use null to use unbounded
        upper - the upper bound (incl; only for numeric values), use null to use unbounded
        minUserMode - the minimum user mode before showing this option