|
||||||||||
| 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>
java.util.AbstractSequentialList<E>
org.eclipse.emf.ecore.util.AbstractSequentialInternalEList<E>
public abstract class AbstractSequentialInternalEList<E>
An abstract implementation of InternalEList.
Clients must override either basicList() or basicListIterator(int)
since these two methods delegate to each other and unless that cycle is broken will lead to stack overflow.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.util.InternalEList |
|---|
InternalEList.Unsettable<E> |
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
protected |
AbstractSequentialInternalEList()
|
| Method Summary | ||
|---|---|---|
boolean |
addAllUnique(java.util.Collection<? extends E> collection)
Adds the objects without verifying uniqueness. |
|
boolean |
addAllUnique(int index,
java.util.Collection<? extends E> collection)
Adds the objects without verifying uniqueness. |
|
void |
addUnique(E object)
Adds the object without verifying uniqueness. |
|
void |
addUnique(int index,
E object)
Adds the object without verifying uniqueness. |
|
NotificationChain |
basicAdd(E object,
NotificationChain notifications)
Adds the object without updating the inverse. |
|
boolean |
basicContains(java.lang.Object object)
Returns whether the object is contained within the list of unresolved values. |
|
boolean |
basicContainsAll(java.util.Collection<?> collection)
Returns whether each object in the collection is contained within the list of unresolved values. |
|
E |
basicGet(int index)
Returns the unresolved value. |
|
int |
basicIndexOf(java.lang.Object object)
Returns the index of the object within the list of unresolved values. |
|
java.util.Iterator<E> |
basicIterator()
Returns an iterator that yields unresolved values. |
|
int |
basicLastIndexOf(java.lang.Object object)
Returns the last index of the object within the list of unresolved values. |
|
java.util.List<E> |
basicList()
Returns an unmodifiable list that yields unresolved values. |
|
java.util.ListIterator<E> |
basicListIterator()
Returns a list iterator that yields unresolved values. |
|
java.util.ListIterator<E> |
basicListIterator(int index)
Returns a list iterator that yields unresolved values. |
|
NotificationChain |
basicRemove(java.lang.Object object,
NotificationChain notifications)
Removes the object with without updating the inverse. |
|
java.lang.Object[] |
basicToArray()
Returns the array with unresolved values. |
|
|
basicToArray(T[] array)
Returns the array with unresolved values. |
|
void |
move(int newPosition,
E object)
Moves the object to the new position, if is in the list. |
|
E |
move(int newPosition,
int oldPosition)
Moves the object from the old position to the new position. |
|
E |
setUnique(int index,
E object)
Sets the object without verifying uniqueness. |
|
| Methods inherited from class java.util.AbstractSequentialList |
|---|
add, addAll, get, iterator, listIterator, remove, set |
| Methods inherited from class java.util.AbstractList |
|---|
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Constructor Detail |
|---|
protected AbstractSequentialInternalEList()
| Method Detail |
|---|
public boolean addAllUnique(java.util.Collection<? extends E> collection)
InternalEList
addAllUnique in interface InternalEList<E>
public boolean addAllUnique(int index,
java.util.Collection<? extends E> collection)
InternalEList
addAllUnique in interface InternalEList<E>public void addUnique(E object)
InternalEList
addUnique in interface InternalEList<E>
public void addUnique(int index,
E object)
InternalEList
addUnique in interface InternalEList<E>
public NotificationChain basicAdd(E object,
NotificationChain notifications)
InternalEList
basicAdd in interface InternalEList<E>public E basicGet(int index)
InternalEList
basicGet in interface InternalEList<E>public java.util.Iterator<E> basicIterator()
InternalEList
basicIterator in interface InternalEList<E>public java.util.List<E> basicList()
InternalEList
basicList in interface InternalEList<E>public java.util.ListIterator<E> basicListIterator()
InternalEList
basicListIterator in interface InternalEList<E>public java.util.ListIterator<E> basicListIterator(int index)
InternalEList
basicListIterator in interface InternalEList<E>
public NotificationChain basicRemove(java.lang.Object object,
NotificationChain notifications)
InternalEList
basicRemove in interface InternalEList<E>public boolean basicContains(java.lang.Object object)
InternalEList
basicContains in interface InternalEList<E>public boolean basicContainsAll(java.util.Collection<?> collection)
InternalEList
basicContainsAll in interface InternalEList<E>public int basicIndexOf(java.lang.Object object)
InternalEList
basicIndexOf in interface InternalEList<E>public int basicLastIndexOf(java.lang.Object object)
InternalEList
basicLastIndexOf in interface InternalEList<E>public java.lang.Object[] basicToArray()
InternalEList
basicToArray in interface InternalEList<E>public <T> T[] basicToArray(T[] array)
InternalEList
basicToArray in interface InternalEList<E>
public E setUnique(int index,
E object)
InternalEList
setUnique in interface InternalEList<E>
public void move(int newPosition,
E object)
EList
move in interface EList<E>newPosition - the position of the object after the move.object - the object to move.
public E move(int newPosition,
int oldPosition)
EList
move in interface EList<E>newPosition - the position of the object after the move.oldPosition - the position of the object before the move.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||