private Boolean [ ] asBooleans ( List < Object > values ) { ValueFactory < Boolean > factory = valueFactories . getBooleanFactory ( ) ; Boolean [ ] res = new Boolean [ values . size ( ) ] ; for ( int i = 0 ; i < res . length ; i ++ ) { res [ i ] = factory . create ( values . get ( i ) ) ; } return res ; }
Converts CMIS value of boolean type into JCR value of boolean type .