|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
org.eclipse.emf.common.util.AbstractEList<E>
org.eclipse.emf.common.util.BasicEList<Object>
org.eclipse.emf.ecp.internal.core.util.ChildrenListImpl
public class ChildrenListImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.BasicEList |
---|
org.eclipse.emf.common.util.BasicEList.FastCompare<E>, org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E> |
Constructor Summary | |
---|---|
ChildrenListImpl(Object parent)
The ChildrenListImpl constructor. |
Method Summary | ||
---|---|---|
void |
addChild(Object child)
Adds a child to the list. |
|
|
addChildren(Collection<T> children)
Adds a list of children to the list. |
|
|
addChildren(T... children)
|
|
void |
addChildWithoutRefresh(Object child)
|
|
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()
|
Methods inherited from class org.eclipse.emf.common.util.BasicEList |
---|
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, basicGet, clear, clone, contains, data, get, grow, indexOf, isEmpty, lastIndexOf, move, remove, setData, setUnique, shrink, size, toArray, toArray |
Methods inherited from class org.eclipse.emf.common.util.AbstractEList |
---|
add, add, addAll, addAll, equals, hashCode, iterator, listIterator, listIterator, move, remove, removeAll, retainAll, set, toString |
Methods inherited from class java.util.AbstractList |
---|
subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecp.spi.core.util.InternalChildrenList |
---|
size |
Methods inherited from interface java.util.List |
---|
containsAll, subList |
Constructor Detail |
---|
public ChildrenListImpl(Object parent)
parent
- the parent object of this ChildrenListImpl
Method Detail |
---|
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 get
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |