private static String replaceBooleanStringByIntegerRepresentation ( final String possibleBooleanString ) { if ( possibleBooleanString . equals ( TRUE . toString ( ) ) ) { return "1" ; } else if ( possibleBooleanString . equals ( FALSE . toString ( ) ) ) { return "0" ; } return possibleBooleanString ; }
Checks whether a String is a Boolean value and replaces it with its Integer representation true - > 1 false - > 0