|
||||||||||
| PREV CLASS SOURCE NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--org.eclipse.emf.common.util.BasicEList
|
+--org.eclipse.emf.common.util.UniqueEList
A BasicEList that allows only unique elements.
| 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 | |
|---|---|
UniqueEList()
Creates an empty instance with no initial capacity. |
|
UniqueEList(java.util.Collection collection)
Creates an instance that is a copy of the collection, with duplicates removed. |
|
UniqueEList(int initialCapacity)
Creates an empty instance with the given capacity. |
|
| Method Summary | |
|---|---|
protected boolean |
isUnique()
Returns true because this list requires uniqueness. |
| Methods inherited from class org.eclipse.emf.common.util.BasicEList |
|---|
add, add, addAll, addAll, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, basicIterator, basicList, basicListIterator, basicListIterator, canContainNull, clear, clone, contains, containsAll, data, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, grow, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, move, move, newData, remove, remove, removeAll, resolve, retainAll, set, setData, setUnique, shrink, 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 |
public UniqueEList()
public UniqueEList(int initialCapacity)
initialCapacity - the initial capacity of the list before it must grow.java.lang.IllegalArgumentException - if the initialCapacity is negative.public UniqueEList(java.util.Collection collection)
collection - the initial contents of the list.| Method Detail |
protected boolean isUnique()
true because this list requires uniqueness.isUnique in class BasicEListtrue.
|
Copyright 2001-2003 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS SOURCE NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||