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 true
falsity
- the string representation of false
public String falseValue()
TruthValues
false
.falseValue
in class TruthValues
false
.public String trueValue()
TruthValues
true
.trueValue
in class TruthValues
true
.public boolean isTrue(String text)
TruthValues
true
.isTrue
in class TruthValues
text
- the string to checktrue
if the string represents truthpublic boolean isFalse(String text)
TruthValues
false
.isFalse
in class TruthValues
text
- the string to checktrue
if the string represents falsityCopyright © 2016 Actian Corporation. All rights reserved.