public static Boolean [ ] asBooleanArray ( List < Boolean > input ) { Boolean [ ] result = new Boolean [ input . size ( ) ] ; for ( int i = 0 ; i < result . length ; i ++ ) { result [ i ] = input . get ( i ) ; } return result ; }
As boolean array .