/** * Returns the integer values of the parameter identified by the given descriptor. * See {@link #getValue(ParameterDescriptor)} for more information about how this * method uses the given {@code parameter} argument. * * @param parameter the name or alias of the parameter to look for. * @return the requested parameter values if they exist, or the <strong>non-null</strong> * {@linkplain DefaultParameterDescriptor#getDefaultValue() default value} otherwise. * @throws ParameterNotFoundException if the given {@code parameter} name or alias is not legal for this group. * @throws IllegalStateException if the value is not defined and there is no default value. * * @see DefaultParameterValue#intValueList() * * @since 0.6 */ public int[] intValueList(final ParameterDescriptor<int[]> parameter) throws ParameterNotFoundException { final ParameterValue<?> value = getParameter(parameter); return (value != null) ? value.intValueList() : defaultValue(parameter); }
/** * Returns the integer values of the parameter identified by the given descriptor. * See {@link #getValue(ParameterDescriptor)} for more information about how this * method uses the given {@code parameter} argument. * * @param parameter the name or alias of the parameter to look for. * @return the requested parameter values if they exist, or the <strong>non-null</strong> * {@linkplain DefaultParameterDescriptor#getDefaultValue() default value} otherwise. * @throws ParameterNotFoundException if the given {@code parameter} name or alias is not legal for this group. * @throws IllegalStateException if the value is not defined and there is no default value. * * @see DefaultParameterValue#intValueList() * * @since 0.6 */ public int[] intValueList(final ParameterDescriptor<int[]> parameter) throws ParameterNotFoundException { final ParameterValue<?> value = getParameter(parameter); return (value != null) ? value.intValueList() : defaultValue(parameter); }
int[] bandIndices = parameters.parameter("SampleDimensions").intValueList(); if (bandIndices != null) { bandIndices = bandIndices.clone();
int[] bandIndices = parameters.parameter("SampleDimensions").intValueList(); if (bandIndices != null) { bandIndices = (int[]) bandIndices.clone();
int[] bandIndices = parameters.parameter("SampleDimensions").intValueList(); if (bandIndices != null) { bandIndices = bandIndices.clone();