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

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

package cn.gjing.tools.excel.write.callback;

import cn.gjing.tools.excel.write.resolver.ExcelBindWriter;

import java.lang.reflect.Field;

/**
 * Body automatic merge callback
 *
 * @author Gjing
 **/
@FunctionalInterface
public interface ExcelAutoMergeCallback {
    /**
     * Vertical merge
     *
     * @param entity     The excel mapping entity for the current row
     * @param field      The corresponding entity field, Exists only if the export type is bind {@link ExcelBindWriter},otherwise is null
     * @param colIndex   Current column Index
     * @param index      The data index, start at 0
     * @return true is need merge
     */
    boolean mergeY(T entity, Field field, int colIndex, int index);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy