List of utility methods to do List to Int List
List | toIntList(Set to Int List if (members == null || members.isEmpty()) { return null; List<Integer> result = new ArrayList<Integer>(); Iterator<String> iterator = members.iterator(); while (iterator.hasNext()) { String str = iterator.next(); Integer newsId = Integer.parseInt(str); ... |
List | toIntList(String arr, String separator) to Int List String[] array = arr.split(separator); List<Integer> r = new ArrayList<Integer>(array.length + 1); for (int i = 0; i < array.length; i++) { r.add(Integer.parseInt(array[i])); return r; |
int[] | toInts(List to Ints int[] values = new int[list.size()]; int i = 0; Iterator<Integer> iterator = list.iterator(); while (iterator.hasNext()) { Integer value = iterator.next(); values[i++] = value; return values; ... |