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>2003-07-14 12:00:53 +0000
committer(no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d>2003-07-14 12:00:53 +0000
commit75f0c0fa71cf9cc460c3500dca8b6a88fd3b1080 (patch)
treeb88fff6263c3bd35c7aca20ff5b95007c1c0870b /common/src/at/gv/egovernment/moa/util/CollectionUtils.java
parent970cebaf7512c375788984360c13c2a098eda721 (diff)
downloadmoa-id-spss-75f0c0fa71cf9cc460c3500dca8b6a88fd3b1080.tar.gz
moa-id-spss-75f0c0fa71cf9cc460c3500dca8b6a88fd3b1080.tar.bz2
moa-id-spss-75f0c0fa71cf9cc460c3500dca8b6a88fd3b1080.zip
This commit was manufactured by cvs2svn to create tagtags/Build-1_0_10_D2
'Build-1_0_10_D2'. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/Build-1_0_10_D2@13 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;
- }
-}