* @throws IllegalArgumentException List is <tt>null</tt> or contains
* duplicate entries.
*/
public ListSet(final List list) {
if (list == null)
throw new NullArgumentException("list");
// make sure there are no duplicates
int size = list.size();
for (int i=0; i<size; i++) {
Object obj = list.get(i);