@Test public void parseInts() { Assert.assertArrayEquals(new int[] { 1, 2, 3 }, CommonUtils.parseInts("1,2,3", ",")); }
public static int[] parseInts(String nums, String sperator) { String[] ss = StringUtils.split(nums, sperator); int[] ints = new int[ss.length]; for (int i = 0; i < ss.length; i++) { ints[i] = Integer.parseInt(ss[i]); } return ints; }
CommonUtils { public static int[] parseInts(String nums, String sperator) { String[] ss = StringUtils.split(nums, sperator); int[] ints = new int[ss.length]; for (int i = 0; i < ss.length; i++) { ints[i] = Integer.parseInt(ss[i]); } return ints; } }
CommonUtils { public static int[] parseInts(String nums, String sperator) { String[] ss = StringUtils.split(nums, sperator); int[] ints = new int[ss.length]; for (int i = 0; i < ss.length; i++) { ints[i] = Integer.parseInt(ss[i]); } return ints; }  }
CommonUtils { public static int[] parseInts(String nums, String sperator) { String[] ss = StringUtils.split(nums, sperator); int[] ints = new int[ss.length]; for (int i = 0; i < ss.length; i++) { ints[i] = Integer.parseInt(ss[i]); } return ints; }  static V putToConcurrentMap(ConcurrentMap<K, V> map, K key, V value); static boolean isTrue(String b); static boolean isTrue(Boolean b); static boolean isFalse(Boolean b); static boolean isFalse(String b); static boolean isEmpty(Collection collection); static boolean isNotEmpty(Collection collection); static boolean isEmpty(Map map); static boolean isNotEmpty(Map map); static boolean isEmpty(Object[] array); static boolean isNotEmpty(Object[] array); static T parseNum(T num, T defaultInt); static int parseInt(String num, int defaultInt); static long parseLong(String num, long defaultLong); static boolean parseBoolean(String bool, boolean defaultInt); static int[] parseInts(String nums, String sperator); static boolean listEquals(List<T> left, List<T> right); static String join(Collection collection, String separator); }
CommonUtils { public static int[] parseInts(String nums, String sperator) { String[] ss = StringUtils.split(nums, sperator); int[] ints = new int[ss.length]; for (int i = 0; i < ss.length; i++) { ints[i] = Integer.parseInt(ss[i]); } return ints; }  static V putToConcurrentMap(ConcurrentMap<K, V> map, K key, V value); static boolean isTrue(String b); static boolean isTrue(Boolean b); static boolean isFalse(Boolean b); static boolean isFalse(String b); static boolean isEmpty(Collection collection); static boolean isNotEmpty(Collection collection); static boolean isEmpty(Map map); static boolean isNotEmpty(Map map); static boolean isEmpty(Object[] array); static boolean isNotEmpty(Object[] array); static T parseNum(T num, T defaultInt); static int parseInt(String num, int defaultInt); static long parseLong(String num, long defaultLong); static boolean parseBoolean(String bool, boolean defaultInt); static int[] parseInts(String nums, String sperator); static boolean listEquals(List<T> left, List<T> right); static String join(Collection collection, String separator);  }