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

com.gitee.beiding.template_excel.RenderHolder Maven / Gradle / Ivy

package com.gitee.beiding.template_excel;

/**
 * 渲染结果包裹
 * 可用于单元格合并
 *
 * @author 丁常磊
 */

public class RenderHolder {

    private Object value;

    private TemplateCell cell;

    private String key;

    public RenderHolder(TemplateCell cell, String key, Object value) {
        this.cell = cell;
        this.key = key;
        this.value = value;
    }
    public boolean eq(RenderHolder holder) {
        if (holder == null) {
            return false;
        }
        boolean b = cell == holder.cell && key.equals(holder.key);
        if (!b) {
            return false;
        }
        if (value == null) {
            return holder.value == null;
        }
        return value.equals(holder.value);
    }

    public Object getValue() {
        return value;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy