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 TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends Object> c) boolean
addAll
(Collection<? extends Object> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
get
(int index) int
hashCode()
int
boolean
isEmpty()
iterator()
int
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
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, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface org.eclipse.epsilon.emc.json.Contained
addContainer, isContainedBy, removeContainer
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
JsonModelArray
public JsonModelArray() -
JsonModelArray
-
-
Method Details
-
getCreatorModel
- Specified by:
getCreatorModel
in interfaceHasCreatorModel
-
getContainers
- Specified by:
getContainers
in interfaceContained
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAll
in interfaceCollection<Object>
- Specified by:
containsAll
in interfaceList<Object>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<Object>
-
listIterator
- Specified by:
listIterator
in interfaceList<Object>
-
listIterator
- Specified by:
listIterator
in interfaceList<Object>
-
subList
-
hashCode
public int hashCode() -
equals
-
toString
-