List of utility methods to do Boolean to String
String | boolean2XML(Boolean b) Boolean as XML version string. if (b == null || b.equals(Boolean.FALSE)) { return "no"; return "yes"; |
String | boolean2XML(Boolean b) boolean XML if (b == null || b.equals(Boolean.FALSE)) { return "no"; return "yes"; |
String | booleanToCheckBox(final boolean value) Translate the given boolean value into a checkbox string equivalent. String checkBoxVal = ""; if (value) { checkBoxVal = "on"; return checkBoxVal; |
String | booleanToString(boolean a_boolean, String aS_True, String aS_False) Converts boolean to String Also null are handled correctly. if (a_boolean) { return aS_True; } else { return aS_False; |
String | BooleanToString(boolean aB) converts boolean to string false - f true - t if (aB) { return "true"; } else { return "false"; |
String | booleanToString(boolean b) boolean To String return (b ? "yes" : "no"); |
String | booleanToString(Boolean b) boolean To String String content = null; if (b.booleanValue()) content = "1"; else content = "0"; return content; |
String | booleanToString(boolean value) Return the Flickr representation of the boolean value. return value ? "1" : "0"; |
String | booleanToSTRING(boolean value) Convert a boolean to its string representation Equivalent to Boolean.valueOf(boolean).toString().toUpperCase() but valid also for JDK 1.3, which does not have valueOf(boolean) return value ? "TRUE" : "FALSE"; |
String | booleanToString(boolean value) convert the db value 'y' in the boolean "true" String bol = "n"; if (value) { bol = "y"; return bol; |