|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> org.eclipse.emf.edit.provider.ItemProviderAdapter.ModifiableSingletonEList<E>
protected static class ItemProviderAdapter.ModifiableSingletonEList<E>
A single-element implementation of EList
. The element can be modified, but
the size of the list may not be changed.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Method Summary | |
---|---|
boolean |
contains(java.lang.Object o)
|
E |
get(int index)
|
void |
move(int index,
E o)
Moves the object to the new position, if is in the list. |
E |
move(int targetIndex,
int sourceIndex)
Moves the object from the old position to the new position. |
E |
set(int index,
E element)
|
int |
size()
|
Methods inherited from class java.util.AbstractList |
---|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, containsAll, isEmpty, remove, removeAll, retainAll, 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, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, subList, toArray, toArray |
Method Detail |
---|
public int size()
size
in interface java.util.Collection<E>
size
in interface java.util.List<E>
size
in class java.util.AbstractCollection<E>
public E get(int index)
get
in interface java.util.List<E>
get
in class java.util.AbstractList<E>
public E set(int index, E element)
set
in interface java.util.List<E>
set
in class java.util.AbstractList<E>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<E>
contains
in interface java.util.List<E>
contains
in class java.util.AbstractCollection<E>
public void move(int index, E o)
EList
move
in interface EList<E>
index
- the position of the object after the move.o
- the object to move.public E move(int targetIndex, int sourceIndex)
EList
move
in interface EList<E>
targetIndex
- the position of the object after the move.sourceIndex
- 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 |