backend/buisnesslogic/src/main/java/com/plannaplan/models/FileData.java

38 lines
779 B
Java
Raw Normal View History

2020-07-28 17:38:34 +02:00
package com.plannaplan.models;
import java.util.HashMap;
2020-07-28 17:38:34 +02:00
import java.util.Iterator;
import org.apache.poi.ss.usermodel.Row;
public class FileData {
private HashMap<String, Integer> keys;
2020-07-28 17:38:34 +02:00
private Iterator<Row> rows;
public FileData(HashMap<String, Integer> keys, Iterator<Row> rows) {
this.keys = keys;
this.rows = rows;
2020-07-28 17:38:34 +02:00
}
public Iterator<Row> getRows() {
return rows;
}
public void setRows(Iterator<Row> rows) {
this.rows = rows;
}
public HashMap<String, Integer> getKeys() {
2020-07-28 17:38:34 +02:00
return keys;
}
public void setKeys(HashMap<String, Integer> keys) {
2020-07-28 17:38:34 +02:00
this.keys = keys;
}
2020-07-28 18:04:38 +02:00
public int getIndexOf(String key) {
int index = this.keys.get(key);
return index;
}
2020-07-28 17:38:34 +02:00
}