Class BooleanValue
java.lang.Object
software.amazon.smithy.rulesengine.language.evaluation.value.Value
software.amazon.smithy.rulesengine.language.evaluation.value.BooleanValue
- All Implemented Interfaces:
FromSourceLocation
,ToNode
A boolean value of true or false.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the current value as anArrayValue
, throwingRuntimeException
when the value is the wrong type.getType()
boolean
getValue()
Gets the true or false value of this boolean.int
hashCode()
toNode()
Converts a value to aNode
.toString()
Methods inherited from class software.amazon.smithy.rulesengine.language.evaluation.value.Value
arrayValue, booleanValue, emptyValue, endpointValue, expectArrayValue, expectEndpointValue, expectIntegerValue, expectRecordValue, expectStringValue, fromNode, getSourceLocation, integerValue, isEmpty, recordValue, stringValue
-
Method Details
-
getValue
public boolean getValue()Gets the true or false value of this boolean.- Returns:
- the value true or false.
-
getType
-
expectBooleanValue
Description copied from class:Value
Returns the current value as anArrayValue
, throwingRuntimeException
when the value is the wrong type.- Overrides:
expectBooleanValue
in classValue
- Returns:
- returns a boolean value.
-
toNode
Description copied from interface:ToNode
Converts a value to aNode
.- Returns:
- Returns the creates Node.
-
equals
-
hashCode
public int hashCode() -
toString
-