toBooleanString static method

String toBooleanString(
  1. bool value
)

Converts a boolean to a String returning one of the input Strings.

BooleanUtils.toBooleanString(true) = "true" BooleanUtils.toBooleanString(false) = "false"

Implementation

static String toBooleanString(final bool value) {
  return value ? TRUE : FALSE;
}