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

cn.gjing.tools.excel.write.callback.ExcelAutoMergeCallback Maven / Gradle / Ivy

There is a newer version: 2021.12.3
Show newest version
package cn.gjing.tools.excel.write.callback;

import java.lang.reflect.Field;

/**
 * Auto merge callback
 *
 * @author Gjing
 **/
@FunctionalInterface
public interface ExcelAutoMergeCallback {
    /**
     * Vertical merge
     *
     * @param t        The excel mapping entity for the current row, Null in the header case
     * @param field    The field corresponding to the current callback has a value only when the simple type is exported
     * @param key      The key corresponding to the current callback has a value only when the simple type is exported
     * @param colIndex colIndex
     * @param index    Line index, index type according to isHead
     * @return true is need merge
     */
    boolean mergeY(T t, Field field, String key, int colIndex, int index);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy