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>2005-06-24 11:00:16 +0000
committer(no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d>2005-06-24 11:00:16 +0000
commitc87e8ec82b5a85596bdab1adba86972cd88b96c5 (patch)
treee14cf111b5adc386a8f53c457623864825945111 /common/src/at/gv/egovernment/moa/util/CollectionUtils.java
parent4914ffa0d889ed525229c0715686b26e30cc1343 (diff)
downloadmoa-id-spss-tags/Build-SPSS-1_2_1.tar.gz
moa-id-spss-tags/Build-SPSS-1_2_1.tar.bz2
moa-id-spss-tags/Build-SPSS-1_2_1.zip
This commit was manufactured by cvs2svn to create tagtags/Build-SPSS-1_2_1
'Build-SPSS-1_2_1'. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/Build-SPSS-1_2_1@371 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;
- }
-}