code: private static short rangeCheck(short value) throws NumberFormatException {
          if (value < MIN_VALUE || value > MAX_VALUE)
              throw new NumberFormatException("Value is out of range : " + value);
  
          return value;
      }
docs: Throw exception if value out of range (short version)
  
  @param value Value to check
  @return value if it is in range
  @throws NumberFormatException if value is out of range