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
public final class BooleanValue extends Value
A boolean value of true or false.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)BooleanValueexpectBooleanValue()Returns the current value as anArrayValue, throwingRuntimeExceptionwhen the value is the wrong type.TypegetType()booleangetValue()Gets the true or false value of this boolean.inthashCode()NodetoNode()Converts a value to aNode.java.lang.StringtoString()-
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 Detail
-
getValue
public boolean getValue()
Gets the true or false value of this boolean.- Returns:
- the value true or false.
-
expectBooleanValue
public BooleanValue expectBooleanValue()
Description copied from class:ValueReturns the current value as anArrayValue, throwingRuntimeExceptionwhen the value is the wrong type.- Overrides:
expectBooleanValuein classValue- Returns:
- returns a boolean value.
-
toNode
public Node toNode()
Description copied from interface:ToNodeConverts a value to aNode.- Returns:
- Returns the creates Node.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-