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

com.janeluo.jfinalplus.kit.excel.CellableMap Maven / Gradle / Ivy

There is a newer version: 2.2.0.r3
Show newest version
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