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 TypeMethodDescriptionbooleanReturns the current value as aBooleanValue, throwingRuntimeExceptionwhen the value is the wrong type.getType()booleangetValue()Gets the true or false value of this boolean.inthashCode()booleanisTruthy()toNode()Converts a value to aNode.toObject()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
-
isTruthy
public boolean isTruthy() -
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:ValueReturns the current value as aBooleanValue, throwingRuntimeExceptionwhen the value is the wrong type.- Overrides:
expectBooleanValuein classValue- Returns:
- returns a boolean value.
-
toNode
Description copied from interface:ToNodeConverts a value to aNode.- Returns:
- Returns the creates Node.
-
equals
-
hashCode
public int hashCode() -
toString
-
toObject
-