@Test public void test() { ConvertManager.getInstance().register(RewardConverter.class); Csv csv = new Csv(' '); File file = new File("src/test/resources/"); List<ItemTemplate> ts = csv.loadAll(file.getAbsolutePath(), ItemTemplate.class); assertTrue(ts.size() == 22); List<MonsterRefreshTemplate> templates = csv.loadAll(file.getAbsolutePath(), MonsterRefreshTemplate.class); List<MonsterRefreshTemplate2> templates2 = csv.loadAll(file.getAbsolutePath(), MonsterRefreshTemplate2.class); for (int i = 0; i < templates.size(); i++) { assertTrue(templates.get(i).getLevelNumList().equals(templates2.get(i).getLevelNumList())); } }
public <T> List<T> loadAll(String templatePath, Class<T> klass) { return loadAll(templatePath, StringUtils.EMPTY, klass); }
Csv { public <T> List<T> loadAll(String templatePath, Class<T> klass) { return loadAll(templatePath, StringUtils.EMPTY, klass); } }
Csv { public <T> List<T> loadAll(String templatePath, Class<T> klass) { return loadAll(templatePath, StringUtils.EMPTY, klass); } Csv();  Csv(char separator); }
Csv { public <T> List<T> loadAll(String templatePath, Class<T> klass) { return loadAll(templatePath, StringUtils.EMPTY, klass); } Csv();  Csv(char separator); List<T> loadAll(String templatePath, Class<T> klass); List<T> loadAll(String templatePath, String zone, Class<T> klass); }
Csv { public <T> List<T> loadAll(String templatePath, Class<T> klass) { return loadAll(templatePath, StringUtils.EMPTY, klass); } Csv();  Csv(char separator); List<T> loadAll(String templatePath, Class<T> klass); List<T> loadAll(String templatePath, String zone, Class<T> klass);  }