Java Utililty Methods Integer to Boolean

List of utility methods to do Integer to Boolean

Description

The list of methods to do Integer to Boolean are organized into topic(s).

Method

booleanintToBoolean(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;
...