com.github.kunalk16.excel.objectmapper.extractor.ColumnByHeaderRowValueExtractor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lightExcelReader Show documentation
Show all versions of lightExcelReader Show documentation
A lightweight Java framework to read .xlsx excel files.
package com.github.kunalk16.excel.objectmapper.extractor;
import com.github.kunalk16.excel.model.user.Row;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;
public class ColumnByHeaderRowValueExtractor implements Function> {
@Override
public Map apply(Row row) {
Map columnByHeaderRowValue = new HashMap<>();
row.getCells().forEach(cell -> columnByHeaderRowValue.put(cell.getValue(), cell.getColumn()));
return columnByHeaderRowValue;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy