com.janeluo.jfinalplus.kit.excel.CellableMap Maven / Gradle / Ivy
package com.janeluo.jfinalplus.kit.excel;
import java.util.LinkedHashMap;
import java.util.Set;
public class CellableMap extends LinkedHashMap implements Cellable {
private static final long serialVersionUID = 5256520140236102824L;
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 - 2024 Weber Informatics LLC | Privacy Policy