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

com.github.kunalk16.excel.objectmapper.extractor.ColumnByHeaderRowValueExtractor Maven / Gradle / Ivy

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