Interface JSArray<T>

    • Method Detail

      • size

        int size()
        Returns the number of elements in this array. If this array contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
        Returns:
        the number of elements in this array
      • get

        List<T> get()
        Returns a list even though it's an array in json
        Returns:
        all the values or empty list
      • get

        T get​(int index)
        Parameters:
        index - of entry
        Returns:
        the value throws JsforjException if index out of bounds
      • add

        void add​(T val)
        Parameters:
        val - to be added to list
      • remove

        void remove​(int index)
        Parameters:
        index - of element to remove throws JsforjException if index out of bounds
      • remove

        boolean remove​(T val)
        Parameters:
        val - to remove
        Returns:
        false if not found