public class BooleanConverter extends Object implements PropertyConverter<Boolean>, Function<String,Boolean>
Boolean.
Possible values that evaluate to true (matching is case insensitive):
| Modifier and Type | Field and Description |
|---|---|
private static Pattern |
BOOLEAN_PATTERN |
| Constructor and Description |
|---|
BooleanConverter() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
apply(String value) |
Boolean |
convert(Class<? extends Boolean> targetType,
String value)
Converts a value from import file to Java.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofprivate static final Pattern BOOLEAN_PATTERN
public Boolean convert(Class<? extends Boolean> targetType, String value)
PropertyConverterconvert in interface PropertyConverter<Boolean>targetType - the type of the target propertyvalue - the value in the import fileCopyright © 2022 fastnate.org. All rights reserved.