public static int fromBinary ( boolean [ ] binary ) { Check . notNull ( binary ) ; int number = 0 ; for ( final boolean current : binary ) { number = number << 1 | boolToInt ( current ) ; } return number ; }
Convert binary array to number representation .