Class ArrayValue

    • Method Detail

      • getValues

        public java.util.List<Value> getValues()
        Gets all the values in the array.
        Returns:
        the values in the array.
      • get

        public 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.
      • expectArrayValue

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

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object