public class InsensitiveTruthMapping extends TruthValues
falsity, truth| Constructor and Description |
|---|
InsensitiveTruthMapping(String truth,
String falsity)
Creates a new case-insensitive mapping with the given values.
|
| Modifier and Type | Method and Description |
|---|---|
String |
falseValue()
Gets the string value for
false. |
boolean |
isFalse(String text)
Indicates whether the given string is a representation for
false. |
boolean |
isTrue(String text)
Indicates whether the given string is a representation for
true. |
String |
trueValue()
Gets the string value for
true. |
public InsensitiveTruthMapping(String truth, String falsity)
truth - the string representation of truefalsity - the string representation of falsepublic String falseValue()
TruthValuesfalse.falseValue in class TruthValuesfalse.public String trueValue()
TruthValuestrue.trueValue in class TruthValuestrue.public boolean isTrue(String text)
TruthValuestrue.isTrue in class TruthValuestext - the string to checktrue if the string represents truthpublic boolean isFalse(String text)
TruthValuesfalse.isFalse in class TruthValuestext - the string to checktrue if the string represents falsityCopyright © 2020 Actian Corporation. All rights reserved.