Class JsonArrayImpl

    • Constructor Detail

      • JsonArrayImpl

        public JsonArrayImpl​(javax.json.JsonArray rawArray)
    • Method Detail

      • getRawArray

        public javax.json.JsonArray getRawArray()
      • getJsonObject

        public JsonObject getJsonObject​(int index)
        Specified by:
        getJsonObject in interface JsonArray
        Returns:
        the JsonObject at the given position
      • getJsonArray

        public JsonArray getJsonArray​(int index)
        Specified by:
        getJsonArray in interface JsonArray
        Returns:
        the JsonArray at the given position
      • getJsonNumber

        public JsonNumber getJsonNumber​(int index)
        Specified by:
        getJsonNumber in interface JsonArray
        Returns:
        the JsonNumber at the given position
      • getJsonString

        public JsonString getJsonString​(int index)
        Specified by:
        getJsonString in interface JsonArray
        Returns:
        the JsonString at the given position
      • getValuesAs

        public <T extends JsonValue> java.util.List<T> getValuesAs​(java.lang.Class<T> clazz)
        Specified by:
        getValuesAs in interface JsonArray
        Returns:
        the respective JsonValue at the given position
      • getString

        public java.lang.String getString​(int index)
        Specified by:
        getString in interface JsonArray
        Returns:
        the native String at the given position
      • getString

        public java.lang.String getString​(int index,
                                          java.lang.String defaultValue)
        Specified by:
        getString in interface JsonArray
        Returns:
        the native String at the given position or the defaultValue if null
      • getInt

        public int getInt​(int index)
        Specified by:
        getInt in interface JsonArray
        Returns:
        the native int value at the given position
      • getInt

        public int getInt​(int index,
                          int defaultValue)
        Specified by:
        getInt in interface JsonArray
        Returns:
        the native int value at the given position or the defaultValue if null
      • getBoolean

        public boolean getBoolean​(int index)
        Specified by:
        getBoolean in interface JsonArray
        Returns:
        the native boolean value at the given position
      • getBoolean

        public boolean getBoolean​(int index,
                                  boolean defaultValue)
        Specified by:
        getBoolean in interface JsonArray
        Returns:
        the native boolean value at the given position or the defaultValue if null
      • isNull

        public boolean isNull​(int index)
        Specified by:
        isNull in interface JsonArray
        Returns:
        whether the value at the given position is JsonValue.NULL.
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<JsonValue>
        Specified by:
        size in interface java.util.List<JsonValue>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<JsonValue>
        Specified by:
        isEmpty in interface java.util.List<JsonValue>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<JsonValue>
        Specified by:
        contains in interface java.util.List<JsonValue>
      • iterator

        public java.util.Iterator<JsonValue> iterator()
        Specified by:
        iterator in interface java.util.Collection<JsonValue>
        Specified by:
        iterator in interface java.lang.Iterable<JsonValue>
        Specified by:
        iterator in interface java.util.List<JsonValue>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<JsonValue>
        Specified by:
        toArray in interface java.util.List<JsonValue>
      • toArray

        public <T> T[] toArray​(T[] a)
        Specified by:
        toArray in interface java.util.Collection<JsonValue>
        Specified by:
        toArray in interface java.util.List<JsonValue>
      • add

        public boolean add​(JsonValue jsonValue)
        Specified by:
        add in interface java.util.Collection<JsonValue>
        Specified by:
        add in interface java.util.List<JsonValue>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<JsonValue>
        Specified by:
        remove in interface java.util.List<JsonValue>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<JsonValue>
        Specified by:
        containsAll in interface java.util.List<JsonValue>
      • addAll

        public boolean addAll​(java.util.Collection<? extends JsonValue> c)
        Specified by:
        addAll in interface java.util.Collection<JsonValue>
        Specified by:
        addAll in interface java.util.List<JsonValue>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends JsonValue> c)
        Specified by:
        addAll in interface java.util.List<JsonValue>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<JsonValue>
        Specified by:
        removeAll in interface java.util.List<JsonValue>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<JsonValue>
        Specified by:
        retainAll in interface java.util.List<JsonValue>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<JsonValue>
        Specified by:
        clear in interface java.util.List<JsonValue>
      • get

        public JsonValue get​(int index)
        Specified by:
        get in interface java.util.List<JsonValue>
      • add

        public void add​(int index,
                        JsonValue element)
        Specified by:
        add in interface java.util.List<JsonValue>
      • remove

        public JsonValue remove​(int index)
        Specified by:
        remove in interface java.util.List<JsonValue>
      • indexOf

        public int indexOf​(java.lang.Object o)
        Specified by:
        indexOf in interface java.util.List<JsonValue>
      • lastIndexOf

        public int lastIndexOf​(java.lang.Object o)
        Specified by:
        lastIndexOf in interface java.util.List<JsonValue>
      • listIterator

        public java.util.ListIterator<JsonValue> listIterator()
        Specified by:
        listIterator in interface java.util.List<JsonValue>
      • listIterator

        public java.util.ListIterator<JsonValue> listIterator​(int index)
        Specified by:
        listIterator in interface java.util.List<JsonValue>
      • subList

        public java.util.List<JsonValue> subList​(int fromIndex,
                                                 int toIndex)
        Specified by:
        subList in interface java.util.List<JsonValue>