@Test public void typeConverterTest() { ArrayList<String> a = Lists.newArrayList("1", "2", "3"); List<Long> b = Converter.typeConvert(a); Assert.assertEquals(a.size(), b.size()); }
public static List<Long> typeConvert(Iterable<String> list) { List<Long> result = new ArrayList<Long>(); for (String element : list) { if (StringUtils.isNotBlank(element)) { result.add(NumberUtils.toLong(element)); } } return result; }
Converter { public static List<Long> typeConvert(Iterable<String> list) { List<Long> result = new ArrayList<Long>(); for (String element : list) { if (StringUtils.isNotBlank(element)) { result.add(NumberUtils.toLong(element)); } } return result; } }
Converter { public static List<Long> typeConvert(Iterable<String> list) { List<Long> result = new ArrayList<Long>(); for (String element : list) { if (StringUtils.isNotBlank(element)) { result.add(NumberUtils.toLong(element)); } } return result; }  }
Converter { public static List<Long> typeConvert(Iterable<String> list) { List<Long> result = new ArrayList<Long>(); for (String element : list) { if (StringUtils.isNotBlank(element)) { result.add(NumberUtils.toLong(element)); } } return result; }  static List<Long> typeConvert(Iterable<String> list); }
Converter { public static List<Long> typeConvert(Iterable<String> list) { List<Long> result = new ArrayList<Long>(); for (String element : list) { if (StringUtils.isNotBlank(element)) { result.add(NumberUtils.toLong(element)); } } return result; }  static List<Long> typeConvert(Iterable<String> list);  }