|
||||||||||
| 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<E>
org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E>
public static class BasicEList.UnmodifiableEList<E>
An unmodifiable version of BasicEList.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.emf.common.util.BasicEList |
|---|
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator<E1>, BasicEList.EListIterator<E1>, BasicEList.FastCompare<E>, BasicEList.NonResolvingEIterator<E1>, BasicEList.NonResolvingEListIterator<E1>, BasicEList.UnmodifiableEList<E> |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.emf.common.util.BasicEList |
|---|
data, size |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
BasicEList.UnmodifiableEList(int size,
java.lang.Object[] data)
Creates an initialized instance. |
|
| Method Summary | |
|---|---|
boolean |
add(E object)
Throws an exception. |
void |
add(int index,
E object)
Throws an exception. |
boolean |
addAll(java.util.Collection<? extends E> collection)
Throws an exception. |
boolean |
addAll(int index,
java.util.Collection<? extends E> collection)
Throws an exception. |
void |
clear()
Throws an exception. |
void |
grow(int minimumCapacity)
Throws an exception. |
java.util.Iterator<E> |
iterator()
Returns the basic iterator. |
java.util.ListIterator<E> |
listIterator()
Returns the basic list iterator. |
java.util.ListIterator<E> |
listIterator(int index)
Returns the basic list iterator advanced to the index. |
void |
move(int index,
E object)
Throws an exception. |
E |
move(int targetIndex,
int sourceIndex)
Throws an exception. |
E |
remove(int index)
Throws an exception. |
boolean |
remove(java.lang.Object object)
Throws an exception. |
boolean |
removeAll(java.util.Collection<?> collection)
Throws an exception. |
boolean |
retainAll(java.util.Collection<?> collection)
Throws an exception. |
E |
set(int index,
E object)
Throws an exception. |
void |
shrink()
Throws an exception. |
| Methods inherited from class org.eclipse.emf.common.util.BasicEList |
|---|
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, basicList, clone, contains, data, get, indexOf, isEmpty, lastIndexOf, newData, primitiveGet, setData, setUnique, size, toArray, toArray |
| Methods inherited from class org.eclipse.emf.common.util.AbstractEList |
|---|
basicIterator, basicListIterator, basicListIterator, canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, isUnique, resolve, toString, useEquals, validate |
| Methods inherited from class java.util.AbstractList |
|---|
removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, subList |
| Constructor Detail |
|---|
public BasicEList.UnmodifiableEList(int size,
java.lang.Object[] data)
size - the size of the list.data - the underlying storage of the list.| Method Detail |
|---|
public E set(int index,
E object)
set in interface java.util.List<E>set in class AbstractEList<E>index - the position in question.object - the object to set.
java.lang.UnsupportedOperationException - always because it's not supported.AbstractEList.setUnique(int, E)public boolean add(E object)
add in interface java.util.Collection<E>add in interface java.util.List<E>add in class AbstractEList<E>object - the object to be added.
java.lang.UnsupportedOperationException - always because it's not supported.AbstractEList.addUnique(Object)
public void add(int index,
E object)
add in interface java.util.List<E>add in class AbstractEList<E>object - the object to be added.
java.lang.UnsupportedOperationException - always because it's not supported.AbstractEList.addUnique(int, Object)public boolean addAll(java.util.Collection<? extends E> collection)
addAll in interface java.util.Collection<E>addAll in interface java.util.List<E>addAll in class AbstractEList<E>collection - the collection of objects to be added.
java.lang.UnsupportedOperationException - always because it's not supported.AbstractEList.addAllUnique(Collection)
public boolean addAll(int index,
java.util.Collection<? extends E> collection)
addAll in interface java.util.List<E>addAll in class AbstractEList<E>index - the index at which to add.collection - the collection of objects to be added.
java.lang.UnsupportedOperationException - always because it's not supported.AbstractEList.addAllUnique(int, Collection)public boolean remove(java.lang.Object object)
remove in interface java.util.Collection<E>remove in interface java.util.List<E>remove in class AbstractEList<E>object - the object to be removed.
java.lang.UnsupportedOperationException - always because it's not supported.public E remove(int index)
remove in interface java.util.List<E>remove in class BasicEList<E>index - the position of the object to remove.
java.lang.UnsupportedOperationException - always because it's not supported.public boolean removeAll(java.util.Collection<?> collection)
removeAll in interface java.util.Collection<E>removeAll in interface java.util.List<E>removeAll in class AbstractEList<E>collection - the collection of objects to be removed.
java.lang.UnsupportedOperationException - always because it's not supported.public boolean retainAll(java.util.Collection<?> collection)
retainAll in interface java.util.Collection<E>retainAll in interface java.util.List<E>retainAll in class AbstractEList<E>collection - the collection of objects to be retained.
java.lang.UnsupportedOperationException - always because it's not supported.public void clear()
clear in interface java.util.Collection<E>clear in interface java.util.List<E>clear in class BasicEList<E>java.lang.UnsupportedOperationException - always because it's not supported.
public void move(int index,
E object)
move in interface EList<E>move in class AbstractEList<E>index - the new position for the object in the list.object - the object to be moved.
java.lang.UnsupportedOperationException - always because it's not supported.
public E move(int targetIndex,
int sourceIndex)
move in interface EList<E>move in class BasicEList<E>targetIndex - the new position for the object in the list.sourceIndex - the old position of the object in the list.
java.lang.UnsupportedOperationException - always because it's not supported.public void shrink()
shrink in class BasicEList<E>java.lang.UnsupportedOperationException - always because it's not supported.BasicEList.grow(int)public void grow(int minimumCapacity)
grow in class BasicEList<E>java.lang.UnsupportedOperationException - always because it's not supported.BasicEList.shrink()public java.util.Iterator<E> iterator()
basic iterator.
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface java.util.List<E>iterator in class AbstractEList<E>AbstractEList.EIteratorpublic java.util.ListIterator<E> listIterator()
basic list iterator.
listIterator in interface java.util.List<E>listIterator in class AbstractEList<E>AbstractEList.EListIteratorpublic java.util.ListIterator<E> listIterator(int index)
basic list iterator advanced to the index.
listIterator in interface java.util.List<E>listIterator in class AbstractEList<E>index - the starting index.
AbstractEList.EListIterator
|
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 | |||||||||