public class ChildrenListImpl extends org.eclipse.emf.common.util.BasicEList<Object> implements InternalChildrenList
org.eclipse.emf.common.util.BasicEList.BasicIndexOutOfBoundsException, org.eclipse.emf.common.util.BasicEList.EIterator<E1>, org.eclipse.emf.common.util.BasicEList.EListIterator<E1>, org.eclipse.emf.common.util.BasicEList.FastCompare<E>, org.eclipse.emf.common.util.BasicEList.NonResolvingEIterator<E1>, org.eclipse.emf.common.util.BasicEList.NonResolvingEListIterator<E1>, org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E>
modCount
Constructor and Description |
---|
ChildrenListImpl(Object parent)
The ChildrenListImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(Object child)
Adds a child to the list.
|
<T> void |
addChildren(Collection<T> children)
Adds a list of children to the list.
|
<T> void |
addChildren(T... children) |
void |
addChildWithoutRefresh(Object child) |
protected void |
childrenAdded()
This method is called whenever a child is added.
|
Object |
getChild(int index)
Returns the object with this index from the list.
|
Object[] |
getChildren()
Returns the children of this list.
|
Object |
getParent()
Return the parent element of this list.
|
boolean |
hasChildren()
Whether this list has children.
|
boolean |
isComplete()
Whether this list is complete or not.
|
boolean |
isSlow()
Whether this list is slow or not.
|
void |
setComplete() |
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, basicList, clear, clone, contains, data, get, grow, indexOf, isEmpty, lastIndexOf, move, newData, primitiveGet, remove, setData, setUnique, shrink, size, toArray, toArray
add, add, addAll, addAll, basicIterator, basicListIterator, basicListIterator, canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, isUnique, iterator, listIterator, listIterator, move, remove, removeAll, resolve, retainAll, set, toString, useEquals, validate
removeRange, subList
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
size
containsAll, replaceAll, sort, spliterator, subList
parallelStream, removeIf, stream
public ChildrenListImpl(Object parent)
parent
- the parent object of this ChildrenListImpl
public final Object getParent()
getParent
in interface InternalChildrenList
public boolean hasChildren()
hasChildren
in interface InternalChildrenList
public Object[] getChildren()
getChildren
in interface InternalChildrenList
public Object getChild(int index)
getChild
in interface InternalChildrenList
index
- the index of the element to getpublic void addChildWithoutRefresh(Object child)
addChildWithoutRefresh
in interface InternalChildrenList
public final void addChild(Object child)
addChild
in interface InternalChildrenList
child
- the childpublic final <T> void addChildren(T... children)
addChildren
in interface InternalChildrenList
public final <T> void addChildren(Collection<T> children)
addChildren
in interface InternalChildrenList
children
- a collection of new childrenpublic boolean isSlow()
isSlow
in interface InternalChildrenList
public boolean isComplete()
isComplete
in interface InternalChildrenList
public void setComplete()
setComplete
in interface InternalChildrenList
protected void childrenAdded()
Copyright © 2019. All rights reserved.