public interface String_To_Boolean extends IsTransformer<String,Boolean>
Converts a String to a Boolean.
| Modifier and Type | Method and Description |
|---|---|
static String_To_Boolean |
create()
Creates a transformer that takes a String and returns a Boolean.
|
default Boolean |
transform(String s)
Transforms a String to a Boolean.
|
apply, transformdefault Boolean transform(String s)
Transforms a String to a Boolean.
Returns true if the string is true or on and false if the string is false or off (all string are tested ignoring case).
transform in interface Transformer<String,Boolean>s - input stringtrue or on, false if string was false or off, null otherwisestatic String_To_Boolean create()
Creates a transformer that takes a String and returns a Boolean.
Copyright © 2016–2017. All rights reserved.