1 | public static class FastCompare<E> extends BasicEList<E>↵ | | 1 | public static class FastCompare<E> extends UniqueEList<E>↵
|
2 | {↵ | | 2 | {↵
|
3 | private static final long serialVersionUID = 1L;↵ | | 3 | private static final long serialVersionUID = 1L;↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Creates an empty instance with no initial capacity.↵ | | 5 | * Creates an empty instance with no initial capacity.↵
|
6 | */↵ | | 6 | */↵
|
7 | public FastCompare()↵ | | 7 | public FastCompare()↵
|
8 | {↵ | | 8 | {↵
|
9 | super();↵ | | 9 | super();↵
|
10 | }↵ | | 10 | }↵
|
|
11 | /**↵ | | 11 | /**↵
|
12 | * Creates an empty instance with the given capacity.↵ | | 12 | * Creates an empty instance with the given capacity.↵
|
13 | * @param initialCapacity the initial capacity of the list before it must grow.↵ | | 13 | * @param initialCapacity the initial capacity of the list before it must grow.↵
|
14 | * @exception IllegalArgumentException if the <code>initialCapacity</code> is negative.↵ | | 14 | * @exception IllegalArgumentException if the <code>initialCapacity</code> is negative.↵
|
15 | */↵ | | 15 | */↵
|
16 | public FastCompare(int initialCapacity)↵ | | 16 | public FastCompare(int initialCapacity)↵
|
17 | {↵ | | 17 | {↵
|
18 | super(initialCapacity);↵ | | 18 | super(initialCapacity);↵
|
19 | }↵ | | 19 | }↵
|
|
20 | /**↵ | | 20 | /**↵
|
21 | * Creates an instance that is a copy of the collection.↵ | | 21 | * Creates an instance that is a copy of the collection, with duplicates removed.↵
|
22 | * @param collection the initial contents of the list.↵ | | 22 | * @param collection the initial contents of the list.↵
|
23 | */↵ | | 23 | */↵
|
24 | public FastCompare(Collection<? extends E> collection)↵ | | 24 | public FastCompare(Collection<? extends E> collection)↵
|
25 | {↵ | | 25 | {↵
|
26 | super(collection.size());↵ | | 26 | super(collection.size());↵
|
27 | addAll(collection);↵ | | 27 | addAll(collection);↵
|
28 | }↵ | | 28 | }↵
|
|
29 | /**↵ | | 29 | /**↵
|
30 | * Returns <code>false</code> because this list uses <code>==</code>.↵ | | 30 | * Returns <code>false</code> because this list uses <code>==</code>.↵
|
31 | * @return <code>false</code>.↵ | | 31 | * @return <code>false</code>.↵
|
32 | */↵ | | 32 | */↵
|
33 | @Override↵ | | 33 | @Override↵
|
34 | protected boolean useEquals()↵ | | 34 | protected boolean useEquals()↵
|
35 | {↵ | | 35 | {↵
|
36 | return false; | | 36 | return false;
|