org.eclipse.emf.edit.provider
Class ItemProviderAdapter.ModifiableSingletonEList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
org.eclipse.emf.edit.provider.ItemProviderAdapter.ModifiableSingletonEList
- All Implemented Interfaces:
- Collection, EList, List
- Enclosing class:
- ItemProviderAdapter
- protected static class ItemProviderAdapter.ModifiableSingletonEList
- extends AbstractList
- implements EList
A single-element implementation of EList. The element can be modified, but
the size of the list may not be changed.
| Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList |
| Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, subList, toArray, toArray |
size
public int size()
- Specified by:
size in interface List
get
public Object get(int index)
- Specified by:
get in interface List
set
public Object set(int index,
Object element)
- Specified by:
set in interface List
contains
public boolean contains(Object o)
- Specified by:
contains in interface List
move
public void move(int index,
Object o)
- Description copied from interface:
EList
- Moves the object to the new position, if is in the list.
- Specified by:
move in interface EList
- Parameters:
index - the position of the object after the move.o - the object to move.
move
public Object move(int targetIndex,
int sourceIndex)
- Description copied from interface:
EList
- Moves the object from the old position to the new position.
- Specified by:
move in interface EList
- Parameters:
targetIndex - the position of the object after the move.sourceIndex - the position of the object before the move.
- Returns:
- the moved object.