src/main/java/ucar/geoapi/NetcdfParameter.java
@Override
    public int intValue() throws InvalidParameterTypeException {
        final double value = doubleValue();
        final int result = (int) value;
        if (result != value) {
            throw invalidType(parameter, Integer.class);
        }
        return result;
    }
/**
     * Returns the {@linkplain Parameter#getNumericValue() parameter numeric value} as
     * an integer value. This method invokes {@link #doubleValue()}, casts the result
     * to the {@code int} type and ensures that there is no loss of accuracy.
     *
     * @return the parameter numeric value.
     * @throws InvalidParameterTypeException if the parameter value is not convertible
     *         to the {@code int} type.
     *
     * @see Parameter#getNumericValue()
     */
Returns the  Parameter#getNumericValue() parameter numeric value as
an integer value. This method invokes  #doubleValue(), casts the result
to the  int type and ensures that there is no loss of accuracy.

@return the parameter numeric value.
@throws InvalidParameterTypeException if the parameter value is not convertible
to the  int type.


Returns the Parameter#getNumericValue () parameter numeric value as an integer value . This method invokes #doubleValue () casts the result to the int type and ensures that there is no loss of accuracy . @return the parameter numeric value . @throws InvalidParameterTypeException if the parameter value is not convertible to the int type .
@Override
    public int intValue() throws InvalidParameterTypeException {
        final double value = doubleValue();
        final int result = (int) value;
        if (result != value) {
            throw invalidType(parameter, Integer.class);
        }
        return result;
    }
@ Override public int intValue ( ) throws InvalidParameterTypeException { final double value = doubleValue ( ) ; final int result = ( int ) value ; if ( result != value ) { throw invalidType ( parameter , Integer . class ) ; } return result ; }
Returns the {@linkplain Parameter#getNumericValue() parameter numeric value} as
 an integer value.
Returns the { @linkplain Parameter#getNumericValue () parameter numeric value } as an integer value .