Merge with assign
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user