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, wait
of
private static final Pattern BOOLEAN_PATTERN
public Boolean convert(Class<? extends Boolean> targetType, String value)
PropertyConverter
convert
in interface PropertyConverter<Boolean>
targetType
- the type of the target propertyvalue
- the value in the import fileCopyright © 2022 fastnate.org. All rights reserved.