diff options
author | (no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2003-11-07 18:56:52 +0000 |
---|---|---|
committer | (no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2003-11-07 18:56:52 +0000 |
commit | 45e9a40c92badf8467b79ab20d9e609e43971601 (patch) | |
tree | 52ecbc9608a805767db02e03c03cc98c412c574c /common/src/at/gv/egovernment/moa/util/CollectionUtils.java | |
parent | 04d0e07072552ae435ed0085f91af55e3a059a4a (diff) | |
download | moa-id-spss-45e9a40c92badf8467b79ab20d9e609e43971601.tar.gz moa-id-spss-45e9a40c92badf8467b79ab20d9e609e43971601.tar.bz2 moa-id-spss-45e9a40c92badf8467b79ab20d9e609e43971601.zip |
This commit was manufactured by cvs2svn to create tag 'Build-1_1_0'.tags/Build-1_1_0
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/Build-1_1_0@46 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.java | 36 |
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; - } -} |