All Downloads are FREE. Search and download functionalities are using the official Maven repository.

goja.rapid.excel.CellableMap Maven / Gradle / Ivy

The newest version!
package goja.rapid.excel;

import java.util.LinkedHashMap;
import java.util.Set;

public class CellableMap extends LinkedHashMap implements Cellable {

    public String[] getHeaderCellValue() {
        return keySet().toArray(new String[]{});
    }

    public String[] getCellValues() {

        String[] cellValues = new String[size()];
        Set keys = keySet();
        int index = 0;
        for (String key : keys) {
            cellValues[index++] = get(key).toString();
        }
        return cellValues;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy