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

com.github.kunalk16.excel.model.factory.ExcelCell Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.github.kunalk16.excel.model.factory;

import com.github.kunalk16.excel.factory.extractor.ColumnNumberByNameExtractor;
import com.github.kunalk16.excel.model.user.Cell;

public class ExcelCell implements Cell {
    private final int row;

    private final String column;

    private final String value;

    public ExcelCell(int row, String column, String value) {
        this.row = row;
        this.column = column;
        this.value = value;
    }

    @Override
    public int getRow() {
        return this.row;
    }

    @Override
    public String getColumn() {
        return this.column;
    }

    @Override
    public int getColumnIndex() {
        return ColumnNumberByNameExtractor.getInstance().apply(this.getColumn());
    }

    @Override
    public String getValue() {
        return this.value;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy