com.seeyon.ctp.util
类 UniqueList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
com.seeyon.ctp.util.UniqueList<E>
- 所有已实现的接口:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess
public class UniqueList<E>
- extends java.util.ArrayList<E>
保证ArrayList的每一个元素是唯一的
- 作者:
- Tanmf
- 另请参见:
- 序列化表格
| 从类 java.util.AbstractList 继承的字段 |
modCount |
|
方法摘要 |
boolean |
add(E o)
|
void |
add(int index,
E element)
|
boolean |
addAll(java.util.Collection<? extends E> c)
|
boolean |
addAll(int index,
java.util.Collection<? extends E> c)
|
void |
clear()
|
boolean |
contains(java.lang.Object elem)
|
E |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
protected void |
removeRange(int fromIndex,
int toIndex)
|
| 从类 java.util.ArrayList 继承的方法 |
clone, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, set, size, toArray, toArray, trimToSize |
| 从类 java.util.AbstractList 继承的方法 |
equals, hashCode, iterator, listIterator, listIterator, subList |
| 从类 java.util.AbstractCollection 继承的方法 |
containsAll, removeAll, retainAll, toString |
| 从类 java.lang.Object 继承的方法 |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| 从接口 java.util.List 继承的方法 |
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
UniqueList
public UniqueList()
UniqueList
public UniqueList(java.util.Collection<? extends E> c)
UniqueList
public UniqueList(int initialCapacity)
add
public boolean add(E o)
- 指定者:
- 接口
java.util.Collection<E> 中的 add - 指定者:
- 接口
java.util.List<E> 中的 add - 覆盖:
- 类
java.util.ArrayList<E> 中的 add
add
public void add(int index,
E element)
- 指定者:
- 接口
java.util.List<E> 中的 add - 覆盖:
- 类
java.util.ArrayList<E> 中的 add
addAll
public boolean addAll(java.util.Collection<? extends E> c)
- 指定者:
- 接口
java.util.Collection<E> 中的 addAll - 指定者:
- 接口
java.util.List<E> 中的 addAll - 覆盖:
- 类
java.util.ArrayList<E> 中的 addAll
addAll
public boolean addAll(int index,
java.util.Collection<? extends E> c)
- 指定者:
- 接口
java.util.List<E> 中的 addAll - 覆盖:
- 类
java.util.ArrayList<E> 中的 addAll
contains
public boolean contains(java.lang.Object elem)
- 指定者:
- 接口
java.util.Collection<E> 中的 contains - 指定者:
- 接口
java.util.List<E> 中的 contains - 覆盖:
- 类
java.util.ArrayList<E> 中的 contains
remove
public E remove(int index)
- 指定者:
- 接口
java.util.List<E> 中的 remove - 覆盖:
- 类
java.util.ArrayList<E> 中的 remove
remove
public boolean remove(java.lang.Object o)
- 指定者:
- 接口
java.util.Collection<E> 中的 remove - 指定者:
- 接口
java.util.List<E> 中的 remove - 覆盖:
- 类
java.util.ArrayList<E> 中的 remove
removeRange
protected void removeRange(int fromIndex,
int toIndex)
- 覆盖:
- 类
java.util.ArrayList<E> 中的 removeRange
clear
public void clear()
- 指定者:
- 接口
java.util.Collection<E> 中的 clear - 指定者:
- 接口
java.util.List<E> 中的 clear - 覆盖:
- 类
java.util.ArrayList<E> 中的 clear