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 .