@Test void iterator() throws IOException { try (CsvRepository csvRepository = new CsvRepository(testdata, entityTypeFactory, attrMetaFactory, null)) { Iterator<Entity> it = csvRepository.iterator(); assertTrue(it.hasNext()); Entity entity = it.next(); assertEquals("val1", entity.get("col1")); assertEquals("val2", entity.get("col2")); assertTrue(it.hasNext()); entity = it.next(); assertEquals("a,a", entity.get("col1")); assertEquals("b", entity.get("col2")); assertTrue(it.hasNext()); assertTrue(it.hasNext()); entity = it.next(); assertNull(entity.get("col1")); assertEquals("a", entity.get("col2")); assertTrue(it.hasNext()); entity = it.next(); assertEquals("\"", entity.get("col1")); assertEquals("\"\"", entity.get("col2")); assertTrue(it.hasNext()); entity = it.next(); assertEquals(",", entity.get("col1")); assertEquals(",,", entity.get("col2")); assertFalse(it.hasNext()); } }
@NotNull @Override public Iterator<Entity> iterator() { return new CsvIterator(file, sheetName, cellProcessors, separator, getEntityType()); }
CsvRepository extends AbstractRepository { @NotNull @Override public Iterator<Entity> iterator() { return new CsvIterator(file, sheetName, cellProcessors, separator, getEntityType()); } }
CsvRepository extends AbstractRepository { @NotNull @Override public Iterator<Entity> iterator() { return new CsvIterator(file, sheetName, cellProcessors, separator, getEntityType()); } CsvRepository(
      File file,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      @Nullable @CheckForNull List<CellProcessor> cellProcessors,
      Character separator);  CsvRepository(
      File file,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      @Nullable @CheckForNull List<CellProcessor> cellProcessors);  CsvRepository(
      File file,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      String sheetName,
      @Nullable @CheckForNull List<CellProcessor> cellProcessors); }
CsvRepository extends AbstractRepository { @NotNull @Override public Iterator<Entity> iterator() { return new CsvIterator(file, sheetName, cellProcessors, separator, getEntityType()); } CsvRepository(
      File file,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      @Nullable @CheckForNull List<CellProcessor> cellProcessors,
      Character separator);  CsvRepository(
      File file,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      @Nullable @CheckForNull List<CellProcessor> cellProcessors);  CsvRepository(
      File file,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      String sheetName,
      @Nullable @CheckForNull List<CellProcessor> cellProcessors); @NotNull @Override Iterator<Entity> iterator(); EntityType getEntityType(); void addCellProcessor(CellProcessor cellProcessor); @Override Set<RepositoryCapability> getCapabilities(); @Override long count(); }
CsvRepository extends AbstractRepository { @NotNull @Override public Iterator<Entity> iterator() { return new CsvIterator(file, sheetName, cellProcessors, separator, getEntityType()); } CsvRepository(
      File file,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      @Nullable @CheckForNull List<CellProcessor> cellProcessors,
      Character separator);  CsvRepository(
      File file,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      @Nullable @CheckForNull List<CellProcessor> cellProcessors);  CsvRepository(
      File file,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      String sheetName,
      @Nullable @CheckForNull List<CellProcessor> cellProcessors); @NotNull @Override Iterator<Entity> iterator(); EntityType getEntityType(); void addCellProcessor(CellProcessor cellProcessor); @Override Set<RepositoryCapability> getCapabilities(); @Override long count();  }