Merge with assign

This commit is contained in:
Filip Izydorczyk
2020-10-01 16:46:45 +02:00
14 changed files with 395 additions and 32 deletions

View File

@ -4,22 +4,16 @@ import java.util.HashMap;
import java.util.Iterator;
import org.apache.poi.ss.usermodel.Row;
//dictionary is deprecated use hashmap instead
public class FileData {
private HashMap<String, Integer> keys;
private Iterator<Row> rows;
//why variable is called keys2, could it be more specific???
//why use setters in constructor here instead of assignments???
// thought that setters are used to change values in runtime
public FileData(HashMap<String, Integer> keys, Iterator<Row> rows) {
this.keys = keys;
this.rows = rows;
}
public Iterator<Row> getRows() {
return rows;
}