public class ExactTruthMapping extends TruthValues
falsity, truth
Constructor and Description |
---|
ExactTruthMapping(String truth,
String falsity)
Creates a new case-sensitive 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 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.