org.eclipse.emf.common.util
Class ECollections

java.lang.Object
  extended byorg.eclipse.emf.common.util.ECollections

public class ECollections
extends Object

Support for empty and unmodifiable ELists.


Field Summary
static EList EMPTY_ELIST
          An unmodifiable empty list with an efficient reusable iterator.
 
Method Summary
static void reverse(EList list)
          Reverses the order of the elements in the specified EList.
static EList unmodifiableEList(EList list)
          Returns an unmodifiable view of the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ELIST

public static final EList EMPTY_ELIST
An unmodifiable empty list with an efficient reusable iterator.

Method Detail

reverse

public static void reverse(EList list)
Reverses the order of the elements in the specified EList.


unmodifiableEList

public static EList unmodifiableEList(EList list)
Returns an unmodifiable view of the list.

Returns:
an unmodifiable view of the list.

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