src/main/java/biz/pavonis/golservice/internal/BitUtils.java
public static boolean[] toBinaryArray(int input, int length) {
		boolean[] bits = new boolean[length];
	    for (int i = length - 1; i >= 0; i--) {
	        bits[i] = (input & (1 << i)) != 0;
	    }
	    return bits;
	}
/**
	 * Returns an integer converted to a binary array.
	 * @param input
	 * @param length
	 * @return
	 */
Returns an integer converted to a binary array.
@param input
@param length
@return
Returns an integer converted to a binary array . @param input @param length @return
public static boolean[] toBinaryArray(int input, int length) {
		boolean[] bits = new boolean[length];
	    for (int i = length - 1; i >= 0; i--) {
	        bits[i] = (input & (1 << i)) != 0;
	    }
	    return bits;
	}
public static boolean [ ] toBinaryArray ( int input , int length ) { boolean [ ] bits = new boolean [ length ] ; for ( int i = length - 1 ; i >= 0 ; i -- ) { bits [ i ] = ( input & ( 1 << i ) ) != 0 ; } return bits ; }
Returns an integer converted to a binary array.
Returns an integer converted to a binary array .