Commits

Anonymous committed 00caf8e

Add constructors paralleling ArrayList's constructors.

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@301e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork/util/XWorkList.java

         this.clazz = clazz;
     }
 
+    public XWorkList(Class clazz, Collection c) {
+        super(c.size());
+        this.clazz = clazz;
+        addAll(c);
+    }
+
+    public XWorkList(Class clazz, int initialCapacity) {
+        super(initialCapacity);
+        this.clazz = clazz;
+    }
+
     //~ Methods ////////////////////////////////////////////////////////////////
 
     /**