Package org.eclipse.emf.common.util
Class UniqueEList.FastCompare<E>
java.lang.Object
java.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.UniqueEList<E>
org.eclipse.emf.common.util.UniqueEList.FastCompare<E>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<E>,Collection<E>,List<E>,RandomAccess,EList<E>
- Enclosing class:
- UniqueEList<E>
- See Also:
-
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, sizeFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty instance with no initial capacity.FastCompare(int initialCapacity) Creates an empty instance with the given capacity.FastCompare(Collection<? extends E> collection) Creates an instance that is a copy of the collection, with duplicates removed. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanReturnsfalsebecause this list uses==.Methods inherited from class org.eclipse.emf.common.util.UniqueEList
isUniqueMethods 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, toArrayMethods 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, validateMethods inherited from class java.util.AbstractList
removeRange, subListMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
containsAll, replaceAll, sort, spliterator, subList
-
Constructor Details
-
FastCompare
public FastCompare()Creates an empty instance with no initial capacity. -
FastCompare
public FastCompare(int initialCapacity) Creates an empty instance with the given capacity.- Parameters:
initialCapacity- the initial capacity of the list before it must grow.- Throws:
IllegalArgumentException- if theinitialCapacityis negative.
-
FastCompare
Creates an instance that is a copy of the collection, with duplicates removed.- Parameters:
collection- the initial contents of the list.
-
-
Method Details
-
useEquals
protected boolean useEquals()Returnsfalsebecause this list uses==.- Overrides:
useEqualsin classAbstractEList<E>- Returns:
false.
-