diff --git a/src/java/com/samskivert/util/CollectionUtil.java b/src/java/com/samskivert/util/CollectionUtil.java index 205230e4..df569539 100644 --- a/src/java/com/samskivert/util/CollectionUtil.java +++ b/src/java/com/samskivert/util/CollectionUtil.java @@ -37,7 +37,7 @@ public class CollectionUtil * Adds all items returned by the enumeration to the supplied collection * and returns the supplied collection. */ - public static Collection addAll (Collection col, Enumeration enm) + public static > C addAll (C col, Enumeration enm) { while (enm.hasMoreElements()) { col.add(enm.nextElement()); @@ -49,7 +49,7 @@ public class CollectionUtil * Adds all items returned by the iterator to the supplied collection and * returns the supplied collection. */ - public static Collection addAll (Collection col, Iterator iter) + public static > C addAll (C col, Iterator iter) { while (iter.hasNext()) { col.add(iter.next()); @@ -62,7 +62,7 @@ public class CollectionUtil * returns the supplied collection. If the supplied array is null, nothing * is added to the collection. */ - public static Collection addAll (Collection col, E[] values) + public static > C addAll (C col, E[] values) { if (values != null) { for (E value : values) {