org.eclipse.emf.common.util
Class BasicEList.UnmodifiableEList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--org.eclipse.emf.common.util.BasicEList
                    |
                    +--org.eclipse.emf.common.util.BasicEList.UnmodifiableEList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, EList, java.util.List, java.io.Serializable
Direct Known Subclasses:
EcoreEList.UnmodifiableEList
Enclosing class:
BasicEList

public static class BasicEList.UnmodifiableEList
extends BasicEList

An unmodifiable version of BasicEList.

See Also:
Serialized Form

Inner classes inherited from class org.eclipse.emf.common.util.BasicEList
BasicEList.EIterator, BasicEList.EListIterator, BasicEList.NonResolvingEIterator, BasicEList.NonResolvingEListIterator, BasicEList.UnmodifiableEList
 
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
 void add(int index, java.lang.Object object)
          Throws an exception.
 boolean add(java.lang.Object object)
          Throws an exception.
 boolean addAll(java.util.Collection collection)
          Throws an exception.
 boolean addAll(int index, java.util.Collection collection)
          Throws an exception.
 void clear()
          Throws an exception.
 void grow(int minimumCapacity)
          Throws an exception.
 java.util.Iterator iterator()
          Returns the basic iterator.
 java.util.ListIterator listIterator()
          Returns the basic list iterator.
 java.util.ListIterator listIterator(int index)
          Returns the basic list iterator advanced to the index.
 java.lang.Object move(int targetIndex, int sourceIndex)
          Throws an exception.
 void move(int index, java.lang.Object object)
          Throws an exception.
 java.lang.Object 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.
 java.lang.Object set(int index, java.lang.Object object)
          Throws an exception.
 void shrink()
          Throws an exception.
 
Methods inherited from class org.eclipse.emf.common.util.BasicEList
addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, basicIterator, basicList, basicListIterator, basicListIterator, canContainNull, clone, contains, containsAll, data, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, hashCode, indexOf, isEmpty, isUnique, lastIndexOf, newData, resolve, setData, setUnique, size, toArray, toArray, toString, useEquals, validate
 
Methods inherited from class java.util.AbstractList
removeRange, subList
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
subList
 

Constructor Detail

BasicEList.UnmodifiableEList

public BasicEList.UnmodifiableEList(int size,
                                    java.lang.Object[] data)
Creates an initialized instance.
Parameters:
size - the size of the list.
data - the underlying storage of the list.
Method Detail

set

public java.lang.Object set(int index,
                            java.lang.Object object)
Throws an exception.
Overrides:
set in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

add

public boolean add(java.lang.Object object)
Throws an exception.
Overrides:
add in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

add

public void add(int index,
                java.lang.Object object)
Throws an exception.
Overrides:
add in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

addAll

public boolean addAll(java.util.Collection collection)
Throws an exception.
Overrides:
addAll in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

addAll

public boolean addAll(int index,
                      java.util.Collection collection)
Throws an exception.
Overrides:
addAll in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

remove

public boolean remove(java.lang.Object object)
Throws an exception.
Overrides:
remove in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

remove

public java.lang.Object remove(int index)
Throws an exception.
Overrides:
remove in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

removeAll

public boolean removeAll(java.util.Collection collection)
Throws an exception.
Overrides:
removeAll in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

retainAll

public boolean retainAll(java.util.Collection collection)
Throws an exception.
Overrides:
retainAll in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

clear

public void clear()
Throws an exception.
Overrides:
clear in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

move

public void move(int index,
                 java.lang.Object object)
Throws an exception.
Overrides:
move in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

move

public java.lang.Object move(int targetIndex,
                             int sourceIndex)
Throws an exception.
Overrides:
move in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

shrink

public void shrink()
Throws an exception.
Overrides:
shrink in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

grow

public void grow(int minimumCapacity)
Throws an exception.
Overrides:
grow in class BasicEList
Throws:
UnsupportedOperationException - always because it's not supported.

iterator

public java.util.Iterator iterator()
Returns the basic iterator.
Overrides:
iterator in class BasicEList
Returns:
the basic iterator.

listIterator

public java.util.ListIterator listIterator()
Returns the basic list iterator.
Overrides:
listIterator in class BasicEList
Returns:
the basic list iterator.

listIterator

public java.util.ListIterator listIterator(int index)
Returns the basic list iterator advanced to the index.
Overrides:
listIterator in class BasicEList
Parameters:
index - the starting index.
Returns:
the basic list iterator.

Copyright 2001-2003 IBM Corporation and others.
All Rights Reserved.