public abstract class TruthValues extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
falsity
Text representing a value of
false . |
protected String |
truth
Text representing a value of
true . |
Modifier | Constructor and Description |
---|---|
protected |
TruthValues(String truth,
String falsity)
Defines a new mapping, specifying the canonical representations
of
true and false . |
Modifier and Type | Method and Description |
---|---|
String |
falseValue()
Gets the string value for
false . |
abstract boolean |
isFalse(String text)
Indicates whether the given string is a representation for
false . |
abstract boolean |
isTrue(String text)
Indicates whether the given string is a representation for
true . |
String |
trueValue()
Gets the string value for
true . |
protected final String truth
true
.protected final String falsity
false
.public String falseValue()
false
.false
.public String trueValue()
true
.true
.public abstract boolean isTrue(String text)
true
.text
- the string to checktrue
if the string represents truthpublic abstract boolean isFalse(String text)
false
.text
- the string to checktrue
if the string represents falsityCopyright © 2024 Actian Corporation. All rights reserved.