Formats collections using the iterator formatter.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@935 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2002-11-13 08:45:51 +00:00
parent 19bc14ce45
commit 596144691b
@@ -1,5 +1,5 @@
//
// $Id: StringUtil.java,v 1.43 2002/11/06 01:39:24 mdb Exp $
// $Id: StringUtil.java,v 1.44 2002/11/13 08:45:51 mdb Exp $
//
// samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne
@@ -263,6 +263,9 @@ public class StringUtil
}
buf.append(closeBox);
} else if (val instanceof Collection) {
toString(buf, ((Collection)val).iterator(), openBox, closeBox);
} else if (val instanceof Enumeration) {
buf.append(openBox);
Enumeration enum = (Enumeration)val;