@ThreadSafe @Immutable public class BooleanStringConverter extends Object implements StringConverter<Boolean>, PrimitiveConverter<Boolean>
BigInteger and String.
This converts values to strings using Boolean.toString(). This converts the literal string values "true" and "false"
to a boolean. Any other string values will result in an exception.
| Modifier and Type | Method and Description |
|---|---|
static BooleanStringConverter |
create() |
Boolean |
fromString(String string)
Convert the provided string into an object.
|
EnhancedType<Boolean> |
primitiveType()
The type supported by this converter.
|
EnhancedType<Boolean> |
type()
The type supported by this converter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic static BooleanStringConverter create()
public EnhancedType<Boolean> type()
StringConvertertype in interface StringConverter<Boolean>public EnhancedType<Boolean> primitiveType()
PrimitiveConverterprimitiveType in interface PrimitiveConverter<Boolean>public Boolean fromString(String string)
StringConverterfromString in interface StringConverter<Boolean>Copyright © 2020. All rights reserved.