org.eclipse.emf.common.util
Class UniqueEList.FastCompare<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by org.eclipse.emf.common.util.AbstractEList<E>
              extended by org.eclipse.emf.common.util.BasicEList<E>
                  extended by org.eclipse.emf.common.util.UniqueEList<E>
                      extended by org.eclipse.emf.common.util.UniqueEList.FastCompare<E>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess, EList<E>
Direct Known Subclasses:
ConverterUtil.EPackageList, ConverterUtil.GenPackageList
Enclosing class:
UniqueEList<E>

public static class UniqueEList.FastCompare<E>
extends UniqueEList<E>

A UniqueEList that uses == instead of equals to compare members.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.UniqueEList
UniqueEList.FastCompare<E>
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.BasicEList
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator<E1>, BasicEList.EListIterator<E1>, 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
UniqueEList.FastCompare()
          Creates an empty instance with no initial capacity.
UniqueEList.FastCompare(java.util.Collection<? extends E> collection)
          Creates an instance that is a copy of the collection, with duplicates removed.
UniqueEList.FastCompare(int initialCapacity)
          Creates an empty instance with the given capacity.
 
Method Summary
protected  boolean useEquals()
          Returns false because this list uses ==.
 
Methods inherited from class org.eclipse.emf.common.util.UniqueEList
isUnique
 
Methods inherited from class org.eclipse.emf.common.util.BasicEList
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, basicList, clear, clone, contains, data, get, grow, indexOf, isEmpty, lastIndexOf, move, newData, primitiveGet, remove, setData, setUnique, shrink, size, toArray, toArray
 
Methods inherited from class org.eclipse.emf.common.util.AbstractEList
add, add, addAll, addAll, basicIterator, basicListIterator, basicListIterator, canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, iterator, listIterator, listIterator, move, remove, removeAll, resolve, retainAll, set, toString, 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

UniqueEList.FastCompare

public UniqueEList.FastCompare()
Creates an empty instance with no initial capacity.


UniqueEList.FastCompare

public UniqueEList.FastCompare(int initialCapacity)
Creates an empty instance with the given capacity.

Parameters:
initialCapacity - the initial capacity of the list before it must grow.
Throws:
java.lang.IllegalArgumentException - if the initialCapacity is negative.

UniqueEList.FastCompare

public UniqueEList.FastCompare(java.util.Collection<? extends E> collection)
Creates an instance that is a copy of the collection, with duplicates removed.

Parameters:
collection - the initial contents of the list.
Method Detail

useEquals

protected boolean useEquals()
Returns false because this list uses ==.

Overrides:
useEquals in class AbstractEList<E>
Returns:
false.

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