Package org.eclipse.epsilon.emc.json
Class JsonModelArray
java.lang.Object
org.eclipse.epsilon.emc.json.JsonModelArray
- All Implemented Interfaces:
Iterable<Object>,Collection<Object>,List<Object>,Contained,HasCreatorModel
Thin wrapper over a
JSONArray which adds the concept of a container.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends Object> c) booleanaddAll(Collection<? extends Object> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanget(int index) inthashCode()intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.eclipse.epsilon.emc.json.Contained
addContainer, isContainedBy, removeContainerMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
JsonModelArray
public JsonModelArray() -
JsonModelArray
-
-
Method Details
-
getCreatorModel
- Specified by:
getCreatorModelin interfaceHasCreatorModel
-
getContainers
- Specified by:
getContainersin interfaceContained
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<Object>- Specified by:
containsAllin interfaceList<Object>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Object>
-
listIterator
- Specified by:
listIteratorin interfaceList<Object>
-
listIterator
- Specified by:
listIteratorin interfaceList<Object>
-
subList
-
hashCode
public int hashCode() -
equals
-
toString
-