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

cn.gjing.tools.excel.convert.DataConvert Maven / Gradle / Ivy

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

import java.lang.reflect.Field;

/**
 * @author Gjing
 **/
public interface DataConvert {
    /**
     * Convert to an entity field
     *
     * @param value      Excel cell value
     * @param field      Current field
     * @return new value
     */
    Object toEntityAttribute(Object value, Field field);

    /**
     * Convert to excel cell value
     *
     * @param obj        Current excel entity
     * @param value      The value of the current field
     * @param field      Current field
     * @return new value
     */
    Object toExcelAttribute(T obj, Object value, Field field);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy