aboutsummaryrefslogtreecommitdiff
path: root/common/src/at/gv/egovernment/moa/util/CollectionUtils.java
diff options
context:
space:
mode:
author(no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d>2004-06-28 20:46:16 +0000
committer(no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d>2004-06-28 20:46:16 +0000
commita5694b6491307efb55893ac7ea61920b48d8c9cc (patch)
tree8f601119d277a90bbddae005d8fc02272dde01e3 /common/src/at/gv/egovernment/moa/util/CollectionUtils.java
parent4dd1877ef3771633e096509dae7b8c99fee9ce4b (diff)
downloadmoa-id-spss-a5694b6491307efb55893ac7ea61920b48d8c9cc.tar.gz
moa-id-spss-a5694b6491307efb55893ac7ea61920b48d8c9cc.tar.bz2
moa-id-spss-a5694b6491307efb55893ac7ea61920b48d8c9cc.zip
This commit was manufactured by cvs2svn to create tagtags/Root_proxy_parameter_ordering_projekt
'Root_proxy_parameter_ordering_projekt'. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/Root_proxy_parameter_ordering_projekt@146 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'common/src/at/gv/egovernment/moa/util/CollectionUtils.java')
-rw-r--r--common/src/at/gv/egovernment/moa/util/CollectionUtils.java36
1 files changed, 0 insertions, 36 deletions
diff --git a/common/src/at/gv/egovernment/moa/util/CollectionUtils.java b/common/src/at/gv/egovernment/moa/util/CollectionUtils.java
deleted file mode 100644
index 5329dcbd2..000000000
--- a/common/src/at/gv/egovernment/moa/util/CollectionUtils.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package at.gv.egovernment.moa.util;
-
-import java.util.Iterator;
-import java.util.List;
-
-/**
- * Various utility methods for dealing with <code>java.util.Collection</code>
- * classes.
- *
- * @author Patrick Peck
- * @version $Id$
- */
-public class CollectionUtils {
-
- /**
- * Convert a <code>List</code> of <code>Number</code> objects to an
- * <code>int</code> array.
- *
- * @param nums The <code>List</code> containing the numbers whose integer
- * value to put into the result.
- * @return The <code>int</code> values of the <code>Number</code>s contained
- * in <code>nums</code>.
- */
- public static int[] toIntArray(List nums) {
- int[] result = new int[nums.size()];
- Iterator iter;
- int i;
-
- for (i = 0, iter = nums.iterator(); iter.hasNext(); i++) {
- Number num = (Number) iter.next();
- result[i] = num.intValue();
- }
-
- return result;
- }
-}