class ExcelSheetRow implements SheetRow {

    private static final DataFormatter FORMATTER = new DataFormatter();

    private final Row row;
    private final int firstIndex;
    private final int lastIndex;

    public ExcelSheetRow(Row row, int firstIndex, int lastIndex) {
        this.row = row;
        this.firstIndex = firstIndex;
        this.lastIndex = lastIndex;
    }

    public static String getRowCellAsString(Cell cell, int index) {
        if (cell == null) {
            return null;
        }

        return FORMATTER.formatCellValue(cell);
    }

    @Override
    public boolean isConsistent() {
        return true;
    }

    @Override
    public String get(int index) {<FILL_FUNCTION_BODY>}

    @Override
    public int size() {
        return lastIndex - firstIndex + 1;
    }
}

        index += firstIndex;

        Cell cell = row.getCell(index, Row.MissingCellPolicy.RETURN_BLANK_AS_NULL);

        String value = getRowCellAsString(cell, index);
        if (value != null) {
            value = value.trim();

            if (value.isEmpty()) {
                value = null;
            }
        }

        return value;
    
<no_super_class>