java.lang.Object
software.amazon.smithy.rulesengine.language.evaluation.value.Value
software.amazon.smithy.rulesengine.language.evaluation.value.IntegerValue
All Implemented Interfaces:
FromSourceLocation, ToNode

public final class IntegerValue extends Value
An integer value.
  • Method Details

    • getValue

      public int getValue()
      Gets the value of the integer.
      Returns:
      the value of the integer.
    • getType

      public Type getType()
      Specified by:
      getType in class Value
    • expectIntegerValue

      public IntegerValue expectIntegerValue()
      Description copied from class: Value
      Returns the current value as an ArrayValue, throwing RuntimeException when the value is the wrong type.
      Overrides:
      expectIntegerValue in class Value
      Returns:
      returns an integer value.
    • toNode

      public Node toNode()
      Description copied from interface: ToNode
      Converts a value to a Node.
      Returns:
      Returns the creates Node.