public static Integer toIntegerObject(Boolean bool) { if (bool == null) { return null; } return (bool.booleanValue() ? NumberUtils.INTEGER_ONE : NumberUtils.INTEGER_ZERO);
public static Integer toIntegerObject(boolean bool) { return (bool ? NumberUtils.INTEGER_ONE : NumberUtils.INTEGER_ZERO);
    public static Integer toIntegerObject(Boolean bool) {        if (bool == null) {            return null;        }        return (bool.booleanValue() ? NumberUtils.INTEGER_ONE : NumberUtils.INTEGER_ZERO);    }