public static String[] permissions(final Permission... permissions)
    {
        final List<String> values = new ArrayList<>(permissions.length);
        for (Permission permission : permissions)
        {
            values.add(permission.getValue());
        }
        return values.toArray(new String[values.size()]);
    }
public static String[] permissions(final Permission... permissions)
    {
        final List<String> values = new ArrayList<>(permissions.length);
        for (Permission permission : permissions)
        {
            values.add(permission.getValue());
        }
        return values.toArray(new String[values.size()]);
    }
public static String [ ] permissions ( final Permission ... permissions ) { final List < String > values = new ArrayList <> ( permissions . length ) ; for ( Permission permission : permissions ) { values . add ( permission . getValue ( ) ) ; } return values . toArray ( new String [ values . size ( ) ] ) ; }
Converts the permissions into a String array.

@param permissions the permissions
@return the permissions as an array of strings
Converts the permissions into a String array .