private static Object [ ] getParams ( Context context , Object ... arguments ) { final Collection < Object > params = new ArrayList <> ( 1 ) ; params . add ( context ) ; params . addAll ( Arrays . asList ( arguments ) ) ; return params . toArray ( ) ; }
Get the parameter as array .