Class JsonArray

  • All Implemented Interfaces:
    java.lang.Iterable<JsonValue>, java.util.Collection<JsonValue>, java.util.List<JsonValue>, org.apache.jena.atlas.io.Printable

    public class JsonArray
    extends JsonValue
    implements java.util.List<JsonValue>
    • Constructor Detail

      • JsonArray

        public JsonArray()
    • Method Detail

      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<JsonValue>
        Specified by:
        hashCode in interface java.util.List<JsonValue>
        Specified by:
        hashCode in class JsonValue
      • equals

        public boolean equals​(java.lang.Object other)
        Specified by:
        equals in interface java.util.Collection<JsonValue>
        Specified by:
        equals in interface java.util.List<JsonValue>
        Specified by:
        equals in class JsonValue
      • add

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

        public boolean add​(java.lang.String e)
      • add

        public boolean add​(long val)
      • add

        public boolean add​(boolean b)
      • add

        public void add​(int index,
                        JsonValue element)
        Specified by:
        add 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>
      • clear

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

        public boolean contains​(java.lang.Object object)
        Specified by:
        contains in interface java.util.Collection<JsonValue>
        Specified by:
        contains 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>
      • get

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

        public int indexOf​(java.lang.Object o)
        Specified by:
        indexOf 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>
      • 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>
      • 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>
      • 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>
      • remove

        public JsonValue remove​(int index)
        Specified by:
        remove 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>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<JsonValue>
        Specified by:
        size 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>
      • 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>