From dd4f8da52a99e1968735e577e611296da72dd222 Mon Sep 17 00:00:00 2001 From: "ray.j.greenwell" Date: Thu, 19 Nov 2009 23:47:48 +0000 Subject: [PATCH] One last try, to support usages in yohoho, as advised by Michael Thomas. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2648 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/util/CollectionUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {