List of utility methods to do Integer to Boolean
boolean | intToBoolean(Integer value) int To Boolean return Integer.valueOf(1).equals(value);
|
boolean[] | intToBooleanArray(int in) convet an int into an array of 32 booleans 1 per bit boolean[] ret = new boolean[32]; int index = 1; for (int i = 0; i < ret.length; i++) { if ((in & index) != 0) ret[i] = true; index <<= 1; return ret; ... |