public short[] getShortValues(java.lang.String[] values, short[] defaultValue) { return GetterUtil.getShortValues(values, defaultValue); }
/** * Returns the Object value as a short array. If the value is * <code>null</code>, the {@link #DEFAULT_SHORT_VALUES} array is returned. * In the returned array, each value element not convertible to a short is * replaced by the {@link #DEFAULT_SHORT}. * * @param value the value to convert * @return the value as a short array */ public static short[] getShortValues(Object value) { return getShortValues(value, DEFAULT_SHORT_VALUES); }
/** * Returns the String array values as a short array. If the values array is * <code>null</code>, the {@link #DEFAULT_SHORT_VALUES} array is returned. * In the returned array, each value element not convertible to a short is * replaced by the {@link #DEFAULT_SHORT}. * * @param values the values to convert * @return the values as a short array */ public static short[] getShortValues(String[] values) { return getShortValues(values, DEFAULT_SHORT_VALUES); }
public short[] getShortValues(java.lang.Object value, short[] defaultValue) { return GetterUtil.getShortValues(value, defaultValue); }
public short[] getShortValues(java.lang.String[] values) { return GetterUtil.getShortValues(values); }
public short[] getShortValues(java.lang.Object value) { return GetterUtil.getShortValues(value); }
/** * Returns the Object value as a short array. If the value is * <code>null</code>, the default value is returned. In the returned array, * each value element not convertible to a short is replaced by the {@link * #DEFAULT_SHORT}. * * @param value the value to convert * @param defaultValue a default value * @return the value as a short array */ public static short[] getShortValues(Object value, short[] defaultValue) { if (value instanceof String[]) { return getShortValues((String[])value, defaultValue); } if (value instanceof short[]) { return (short[])value; } return defaultValue; }
/** * Returns the request parameter value as a short array. In the returned * array, each parameter value not convertible to a short 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 short array */ public static short[] getShortValues( HttpServletRequest request, String param, short[] defaultValue) { return GetterUtil.getShortValues( getParameterValues(request, param, null), defaultValue); }
/** * Returns the portlet request parameter value as a short array. In the * returned array, each parameter value not convertible to a short 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 short array */ public static short[] getShortValues( PortletRequest portletRequest, String param, short[] defaultValue) { return GetterUtil.getShortValues( getParameterValues(portletRequest, param, null), defaultValue); }
/** * Returns the service context parameter value as a short array. In the * returned array, each parameter value not convertible to a short 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 short array */ public static short[] getShortValues( ServiceContext serviceContext, String param, short[] defaultValue) { return GetterUtil.getShortValues( serviceContext.getAttribute(param), defaultValue); }
public short[] getShortValues(java.lang.String[] values, short[] defaultValue) { return GetterUtil.getShortValues(values, defaultValue); }
public static short[] getShortValues(String[] values) { return getShortValues(values, DEFAULT_SHORT_VALUES); }
public short[] getShortValues(java.lang.String[] values) { return GetterUtil.getShortValues(values); }
public static short[] getShortValues( HttpServletRequest request, String param, short[] defaultValue) { return GetterUtil.getShortValues( request.getParameterValues(param), defaultValue); }
public static short[] getShortValues( PortletRequest portletRequest, String param, short[] defaultValue) { return GetterUtil.getShortValues( portletRequest.getParameterValues(param), defaultValue); }
return GetterUtil.getShortValues(attribute);
return GetterUtil.getShortValues(StringUtil.split(attribute));