public static void putDeclinedPermissions(Bundle bundle, List<String> value) {
        Validate.notNull(bundle, "bundle");
        Validate.notNull(value, "value");

        ArrayList<String> arrayList;
        if (value instanceof ArrayList<?>) {
            arrayList = (ArrayList<String>) value;
        } else {
            arrayList = new ArrayList<String>(value);
        }
        bundle.putStringArrayList(DECLINED_PERMISSIONS_KEY, arrayList);
    }
public static void putDeclinedPermissions ( Bundle bundle , List < String > value ) { Validate . notNull ( bundle , "bundle" ) ; Validate . notNull ( value , "value" ) ; ArrayList < String > arrayList ; if ( value instanceof ArrayList < ? > ) { arrayList = ( ArrayList < String > ) value ; } else { arrayList = new ArrayList < String > ( value ) ; } bundle . putStringArrayList ( DECLINED_PERMISSIONS_KEY , arrayList ) ; }
Puts the list of declined permissions into a Bundle.

@param bundle
A Bundle in which the list of permissions should be stored.
@param value
The List&lt;String&gt; representing the list of permissions,
or null.

@throws NullPointerException if the passed in Bundle or permissions list are null