|
What this is
Other links
The source code
package com.swabunga.util;
import java.util.Iterator;
import java.util.List;
public class VectorUtility {
public static List addAll(List dest, List src) {
return addAll(dest, src, true);
}
public static List addAll(List dest, List src, boolean allow_duplicates) {
for (Iterator e = src.iterator(); e.hasNext();) {
Object o = e.next();
if (allow_duplicates || !dest.contains(o))
dest.add(o);
}
return dest;
}
}
|
Copyright 1998-2008 Alvin Alexander
All Rights Reserved.
devdaily.com is based in louisville, kentucky, and this web site is hosted by godaddy.com