code: private static int getValue(String str, boolean getMaximumValue) {
      int multiplier = 1;
      String upperOrLowerValue = null;
  
      final String[] rangeUnit = splitRangeUnit(str);
  
      if(rangeUnit.length == 2) {
        multiplier = getMultiplier(rangeUnit[1]);
      }
  
      String[] range = splitRange(rangeUnit[0]);
      upperOrLowerValue = range[0];
  
      if(range.length == 2) {
        if(getMaximumValue) {
          upperOrLowerValue = range[1];
        }
      }
      return (int) (convertStringToDouble(upperOrLowerValue) * multiplier);
    }
docs: Return the specified value from the string.
  
  @param str string to parse; assume it is either a single value or a range (delimited by "-")
  @param getMaximumValue if true return the maximum value
  @return specified value from the string