package com.plannaplan.models; import java.util.HashMap; import java.util.Iterator; import org.apache.poi.ss.usermodel.Row; public class FileData { private HashMap keys; private Iterator rows; /* * FileData * * @param keys this is a hashmap of String and Integer * @param rows this is a iterator of rows. */ public FileData(HashMap keys, Iterator rows) { this.keys = keys; this.rows = rows; } /* * getRows * * @return rows */ public Iterator getRows() { return rows; } /* * setRows * @param rows set the rows to given function */ public void setRows(Iterator rows) { this.rows = rows; } /* * getKeys * @return keys */ public HashMap getKeys() { return keys; } /* * setKeys * @param keys set the key is being a struck of hashmap (String, Integer) */ public void setKeys(HashMap keys) { this.keys = keys; } /* * getIndexOf * @return index */ public int getIndexOf(String key) { int index = this.keys.get(key); return index; } }