From 03b66375f4afdc49a50faae7fa7f2189658295b8 Mon Sep 17 00:00:00 2001 From: Zsombor Gegesy Date: Sun, 15 Aug 2010 03:25:51 +0200 Subject: [PATCH] add Collections.enumeration(Collection c) --- classpath/java/util/Collections.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classpath/java/util/Collections.java b/classpath/java/util/Collections.java index 00facfaa0e..acabd6811a 100644 --- a/classpath/java/util/Collections.java +++ b/classpath/java/util/Collections.java @@ -79,6 +79,10 @@ public class Collections { sb.append("}"); return sb.toString(); } + + public static Enumeration enumeration(Collection c) { + return new IteratorEnumeration (c.iterator()); + } static class IteratorEnumeration implements Enumeration { private final Iterator it;