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

com.yahacode.hiddenblade.app.doc.excel.exception.ExceptionRow Maven / Gradle / Ivy

The newest version!
package com.yahacode.hiddenblade.app.doc.excel.exception;

import java.util.LinkedList;
import java.util.List;

/**
 * Row with exception
 *
 * @author zengyongli
 * @since 0.3.0
 */
public class ExceptionRow {

    /**
     * row number
     */
    private Integer row;

    /**
     * column exceptions in this row
     */
    private List columns;

    public Integer getRow() {
        return row;
    }

    public List getColumns() {
        return columns;
    }

    public ExceptionRow(Integer row) {
        this.row = row;
        this.columns = new LinkedList<>();
    }

    /**
     * Whether this row has column exception
     *
     * @return has column exception
     */
    public boolean hasException() {
        return columns.size() > 0;
    }

    public void addColumn(String columnName, ExceptionType type) {
        this.columns.add(new ExceptionColumn(columnName, type));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy