/**
* A <code>BasicEList</code> that {@link #useEquals uses} <code>==</code> instead of <code>equals</code> to compare members.
*/
/**
* A <code>UniqueEList</code> that {@link #useEquals uses} <code>==</code> instead of <code>equals</code> to compare members.
*/
public static class FastCompare<E> extends [[#variable17290d00]]<E> {
private static final long serialVersionUID = 1L;
/**
* Creates an empty instance with no initial capacity.
*/
public FastCompare() {
super();
}
/**
* Creates an empty instance with the given capacity.
* @param initialCapacity the initial capacity of the list before it must grow.
* @exception IllegalArgumentException if the <code>initialCapacity</code> is negative.
*/
public FastCompare(int initialCapacity) {
super(initialCapacity);
}
/**
* Creates an instance that is a copy of the collection.
* @param collection the initial contents of the list.
*/
/**
* Creates an instance that is a copy of the collection, with duplicates removed.
* @param collection the initial contents of the list.
*/
public FastCompare(Collection<? extends E> collection) {
super(collection.size());
addAll(collection);
}
/**
* Returns <code>false</code> because this list uses <code>==</code>.
* @return <code>false</code>.
*/
@Override protected boolean useEquals() {
return false;
}
}
|