/** * Returns the String values as a double array. If the values array is * <code>null</code>, the default value is returned. In the returned array, * each value element not convertible to a double is replaced by the {@link * #DEFAULT_DOUBLE}. * * @param values the values to convert * @return the values as a double array */ public static double[] getDoubleValues(String[] values) { return getDoubleValues(values, DEFAULT_DOUBLE_VALUES); }
/** * Returns the Object value as a double array. If the value is * <code>null</code>, the default value is returned. In the returned array, * each value element not convertible to a double is replaced by the {@link * #DEFAULT_DOUBLE}. * * @param value the value to convert * @return the value as a double array */ public static double[] getDoubleValues(Object value) { return getDoubleValues(value, DEFAULT_DOUBLE_VALUES); }
public double[] getDoubleValues(java.lang.Object value, double[] defaultValue) { return GetterUtil.getDoubleValues(value, defaultValue); }
public double[] getDoubleValues(java.lang.String[] values, double[] defaultValue) { return GetterUtil.getDoubleValues(values, defaultValue); }
public double[] getDoubleValues(java.lang.Object value) { return GetterUtil.getDoubleValues(value); }
public double[] getDoubleValues(java.lang.String[] values) { return GetterUtil.getDoubleValues(values); }
/** * Returns the Object values as a double array. If the value is * <code>null</code>, the default value is returned. In the returned array, * each value element not convertible to a double is replaced by the {@link * #DEFAULT_DOUBLE}. * * @param value the value to convert * @param defaultValue a default value * @return the value as a double array */ public static double[] getDoubleValues( Object value, double[] defaultValue) { if (value instanceof String[]) { return getDoubleValues((String[])value, defaultValue); } if (value instanceof double[]) { return (double[])value; } return defaultValue; }
/** * Returns the request parameter value as a double array. In the returned * array, each parameter value not convertible to a double is replaced by * the default value. * * @param request the servlet request from which to read the parameter * @param param the name of the parameter * @param defaultValue a default value * @return the request parameter value as a double array */ public static double[] getDoubleValues( HttpServletRequest request, String param, double[] defaultValue) { return GetterUtil.getDoubleValues( getParameterValues(request, param, null), defaultValue); }
/** * Returns the portlet request parameter value as a double array. In the * returned array, each parameter value not convertible to a double is * replaced by the default value. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @param defaultValue a default value * @return the portlet request parameter value as a double array */ public static double[] getDoubleValues( PortletRequest portletRequest, String param, double[] defaultValue) { return GetterUtil.getDoubleValues( getParameterValues(portletRequest, param, null), defaultValue); }
/** * Returns the service context parameter value as a double array. In the * returned array, each parameter value not convertible to a double is * replaced by the default value. * * @param serviceContext the service context from which to read the * parameter * @param param the name of the parameter * @param defaultValue a default value * @return the service context parameter value as a double array */ public static double[] getDoubleValues( ServiceContext serviceContext, String param, double[] defaultValue) { return GetterUtil.getDoubleValues( serviceContext.getAttribute(param), defaultValue); }
public double[] getDoubleValues(java.lang.String[] values) { return GetterUtil.getDoubleValues(values); }
public static double[] getDoubleValues(String[] values) { return getDoubleValues(values, DEFAULT_DOUBLE_VALUES); }
public double[] getDoubleValues(java.lang.String[] values, double[] defaultValue) { return GetterUtil.getDoubleValues(values, defaultValue); }
public static double[] getDoubleValues( HttpServletRequest request, String param, double[] defaultValue) { return GetterUtil.getDoubleValues( request.getParameterValues(param), defaultValue); }
public static double[] getDoubleValues( PortletRequest portletRequest, String param, double[] defaultValue) { return GetterUtil.getDoubleValues( portletRequest.getParameterValues(param), defaultValue); }
return GetterUtil.getDoubleValues(attribute);
return GetterUtil.getDoubleValues(StringUtil.split(attribute));