Class AbstractSimulinkCollection<E,P,M extends Manager<E,P>>
- java.lang.Object
-
- org.eclipse.epsilon.emc.simulink.util.collection.AbstractSimulinkCollection<E,P,M>
-
- All Implemented Interfaces:
Iterable<ISimulinkModelElement>
,Collection<ISimulinkModelElement>
,List<ISimulinkModelElement>
- Direct Known Subclasses:
SimulinkBlockCollection
,SimulinkDataTypeCollection
,SimulinkElementCollection
,SimulinkEntryCollection
,SimulinkJustificationCollection
,SimulinkLineCollection
,SimulinkLinkCollection
,SimulinkLinkSetCollection
,SimulinkPortCollection
,SimulinkReferenceCollection
,SimulinkRequirementCollection
,StateflowBlockCollection
public abstract class AbstractSimulinkCollection<E,P,M extends Manager<E,P>> extends Object implements List<ISimulinkModelElement>
-
-
Constructor Summary
Constructors Constructor Description AbstractSimulinkCollection(Object primitive, M manager)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, listIterator, listIterator, replaceAll, sort, spliterator, subList
-
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
clear
public void clear()
-
iterator
public Iterator<ISimulinkModelElement> iterator()
-
remove
public ISimulinkModelElement remove(int index)
-
get
public ISimulinkModelElement get(int index)
-
add
public boolean add(ISimulinkModelElement e)
-
addPrimitive
public boolean addPrimitive(Object primitive)
-
removePrimitive
public boolean removePrimitive(Object primitive)
-
set
public ISimulinkModelElement set(int index, ISimulinkModelElement element)
-
add
public void add(int index, ISimulinkModelElement element)
-
contains
public boolean contains(Object o)
-
remove
public boolean remove(Object o)
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<E>
-
addAll
public boolean addAll(Collection<? extends ISimulinkModelElement> c)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceList<E>
-
addAll
public boolean addAll(int index, Collection<? extends ISimulinkModelElement> c)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
getManager
public M getManager()
-
isInstanceOf
protected abstract boolean isInstanceOf(Object object)
-
isInstanceOfPrimitive
protected abstract boolean isInstanceOfPrimitive(Object object)
-
isInstanceOfPrimitiveArray
protected abstract boolean isInstanceOfPrimitiveArray(Object object)
-
getInternalIterator
protected abstract Iterator<ISimulinkModelElement> getInternalIterator()
-
-