Java Utililty Methods Boolean to Int

List of utility methods to do Boolean to Int

Description

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

Method

intconvertBooleanToInt(boolean aValue)
Convert boolean to TRUE constant.
return aValue ? TRUE : FALSE;
intconvertBooleanToInt(boolean bool)
convert Boolean To Int
return bool ? 1 : 0;
IntegerconvertBooleanToInteger(Boolean booleanToConvert)
Converts a boolean value to the corresponding integer value, 0 for false and 1 for true.
return booleanToConvert ? 1 : 0;