BooleanGenericConverter constructor
BooleanGenericConverter()
A converter that transforms a Boolean to a specific numeric subtype.
Supported conversions:
Boolean→Boolean(identity)Boolean→intBoolean→doubleBoolean→numBoolean→StringBoolean→IntegerBoolean→LongBoolean→FloatBoolean→BigIntegerBoolean→BigDecimalBoolean→CharacterBoolean→ShortBoolean→DoubleBoolean→BooleanBoolean→BigIntBoolean→bool
Example:
final converter = BooleanGenericConverter();
print(converter.convert(Boolean.valueOf(true)))); // prints: true
Implementation
BooleanGenericConverter();