org.eclipse.emf.edit.provider
Class ItemProviderAdapter.ModifiableSingletonEList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byorg.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.


Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Method Summary
 boolean contains(Object o)
           
 Object get(int index)
           
 Object move(int targetIndex, int sourceIndex)
          Moves the object from the old position to the new position.
 void move(int index, Object o)
          Moves the object to the new position, if is in the list.
 Object set(int index, Object 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

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.

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