public static Boolean integerToBoolean ( Integer value ) { return value . intValue ( ) == 0 ? Boolean . FALSE : Boolean . TRUE ; }
Converts Integer to Boolean . If integer value is 0 then return FALSE else return TRUE .