Class ArrayValue
- java.lang.Object
- 
- software.amazon.smithy.rulesengine.language.evaluation.value.Value
- 
- software.amazon.smithy.rulesengine.language.evaluation.value.ArrayValue
 
 
- 
- All Implemented Interfaces:
- FromSourceLocation,- ToNode
 
 public final class ArrayValue extends Value An array of values of the same type.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)ArrayValueexpectArrayValue()Returns the current value as anArrayValue, throwingRuntimeExceptionwhen the value is the wrong type.Valueget(int index)Gets the value at the index, or an empty value if none is present.TypegetType()java.util.List<Value>getValues()Gets all the values in the array.inthashCode()NodetoNode()Converts a value to aNode.java.lang.StringtoString()- 
Methods inherited from class software.amazon.smithy.rulesengine.language.evaluation.value.ValuearrayValue, booleanValue, emptyValue, endpointValue, expectBooleanValue, expectEndpointValue, expectIntegerValue, expectRecordValue, expectStringValue, fromNode, getSourceLocation, integerValue, isEmpty, recordValue, stringValue
 
- 
 
- 
- 
- 
Method Detail- 
getValuespublic java.util.List<Value> getValues() Gets all the values in the array.- Returns:
- the values in the array.
 
 - 
getpublic Value get(int index) Gets the value at the index, or an empty value if none is present.- Parameters:
- index- the index to get the value of.
- Returns:
- the value at the index, or an empty value if not present.
 
 - 
expectArrayValuepublic ArrayValue expectArrayValue() Description copied from class:ValueReturns the current value as anArrayValue, throwingRuntimeExceptionwhen the value is the wrong type.- Overrides:
- expectArrayValuein class- Value
- Returns:
- returns an array value.
 
 - 
toNodepublic Node toNode() Description copied from interface:ToNodeConverts a value to aNode.- Returns:
- Returns the creates Node.
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-