Class IntOption

    • Field Detail

      • currentVal

        protected int currentVal
      • defaultVal

        protected int defaultVal
      • minVal

        protected int minVal
      • maxVal

        protected int maxVal
    • Constructor Detail

      • IntOption

        public IntOption​(String name,
                         char cliChar,
                         String purpose,
                         int defaultVal)
      • IntOption

        public IntOption​(String name,
                         char cliChar,
                         String purpose,
                         int defaultVal,
                         int minVal,
                         int maxVal)
    • Method Detail

      • setValue

        public void setValue​(int v)
      • getValue

        public int getValue()
      • getMinValue

        public int getMinValue()
      • getMaxValue

        public int getMaxValue()
      • getDefaultCLIString

        public String getDefaultCLIString()
        Description copied from interface: Option
        Gets the Command Line Interface text
        Returns:
        the Command Line Interface text
      • getValueAsCLIString

        public String getValueAsCLIString()
        Description copied from interface: Option
        Gets the value of a Command Line Interface text as a string
        Returns:
        the string with the value of the Command Line Interface text
      • setValueViaCLIString

        public void setValueViaCLIString​(String s)
        Description copied from interface: Option
        Sets value of this option via the Command Line Interface text
        Parameters:
        s - the Command Line Interface text
      • cliStringToInt

        public static int cliStringToInt​(String s)
      • intToCLIString

        public static String intToCLIString​(int i)