IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 移动开发 -> java动态拼接获取对象的属性 -> 正文阅读

[移动开发]java动态拼接获取对象的属性

假设有一个 ExcelImpData 类,其结构如下:
要求:手动拼接ExcelImpData 的对象属性,并获取该对象对应的值:

ExcelImpData   data=new ExcelImpData();
//这么写没问题
String item1=data.getItem1()

//错误演示
//但是假如我想这么写,肯定不行,违反了java的基本语法
String str="getItem";
for (int i = 2; i <10 ; i++) {
    str=str+i+"()";
}
String item2=data.str()

针对上面这种情况,可以通过下面这个反射方法来做一个改进
解决方式:通过反射访问getItem方法

   /**
     * getItemByReflect : 通过反射访问getItem方法

     * @param dto
     * @param num
     * @return java.lang.String
     * @since JDK 1.8
     */
    public String getItemByReflect(ExcelImpData dto, int num) throws TspException {
        try {
            Method m1 = ExcelImpData.class.getDeclaredMethod(String.format("getItem%s", num));
            return (String) m1.invoke(dto);
        } catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
            throw new TspException(AlNvExceptionDescriptionConstant.REFLECT_METHOD_ERROR_EXCEPTION, e);
        }
    }

解决问题示例

ExcelImpData   data=new ExcelImpData();

String str="getItem";
for (int i = 2; i <10 ; i++) {
   String item2= getItemByReflect(data,2)
}

ExcelImpData 类

package java;

import java.util.Date;

public class ExcelImpData  {
    private String id;
    private String batchCode;
    private String sheetName;
    private String item1;
    private String item2;
    private String item3;
    private String item4;
    private String item5;
    private String item6;
    private String item7;
    private String item8;
    private String item9;
    private String item10;
    private String item11;
    private String item12;
    private String item13;
    private String item14;
    private String item15;
    private String item16;
    private String item17;
    private String item18;
    private String item19;
    private String item20;
    private String item21;
    private String item22;
    private String item23;
    private String item24;
    private String item25;
    private String item26;
    private String item27;
    private String item28;
    private String item29;
    private String item30;
    private String item31;
    private String item32;
    private String item33;
    private String item34;
    private String item35;
    private String item36;
    private String item37;
    private String item38;
    private String item39;
    private String item40;
    private String item41;
    private String item42;
    private String item43;
    private String item44;
    private String item45;
    private String item46;
    private String item47;
    private String item48;
    private String item49;
    private String item50;
    private String item51;
    private String item52;
    private String item53;
    private String item54;
    private String item55;
    private String item56;
    private String item57;
    private String item58;
    private String item59;
    private String item60;
    private String item61;
    private String item62;
    private String item63;
    private String item64;
    private String item65;
    private String item66;
    private String item67;
    private String item68;
    private String item69;
    private String item70;
    private String isColumnName;
    private String columnNameType;
    private Long lineNum;
    private Date importDate;
    private Long importBy;

    public ExcelImpData() {
    }

    public String getId() {
        return this.id;
    }

    public String getBatchCode() {
        return this.batchCode;
    }

    public String getSheetName() {
        return this.sheetName;
    }

    public String getItem1() {
        return this.item1;
    }

    public String getItem2() {
        return this.item2;
    }

    public String getItem3() {
        return this.item3;
    }

    public String getItem4() {
        return this.item4;
    }

    public String getItem5() {
        return this.item5;
    }

    public String getItem6() {
        return this.item6;
    }

    public String getItem7() {
        return this.item7;
    }

    public String getItem8() {
        return this.item8;
    }

    public String getItem9() {
        return this.item9;
    }

    public String getItem10() {
        return this.item10;
    }

    public String getItem11() {
        return this.item11;
    }

    public String getItem12() {
        return this.item12;
    }

    public String getItem13() {
        return this.item13;
    }

    public String getItem14() {
        return this.item14;
    }

    public String getItem15() {
        return this.item15;
    }

    public String getItem16() {
        return this.item16;
    }

    public String getItem17() {
        return this.item17;
    }

    public String getItem18() {
        return this.item18;
    }

    public String getItem19() {
        return this.item19;
    }

    public String getItem20() {
        return this.item20;
    }

    public String getItem21() {
        return this.item21;
    }

    public String getItem22() {
        return this.item22;
    }

    public String getItem23() {
        return this.item23;
    }

    public String getItem24() {
        return this.item24;
    }

    public String getItem25() {
        return this.item25;
    }

    public String getItem26() {
        return this.item26;
    }

    public String getItem27() {
        return this.item27;
    }

    public String getItem28() {
        return this.item28;
    }

    public String getItem29() {
        return this.item29;
    }

    public String getItem30() {
        return this.item30;
    }

    public String getItem31() {
        return this.item31;
    }

    public String getItem32() {
        return this.item32;
    }

    public String getItem33() {
        return this.item33;
    }

    public String getItem34() {
        return this.item34;
    }

    public String getItem35() {
        return this.item35;
    }

    public String getItem36() {
        return this.item36;
    }

    public String getItem37() {
        return this.item37;
    }

    public String getItem38() {
        return this.item38;
    }

    public String getItem39() {
        return this.item39;
    }

    public String getItem40() {
        return this.item40;
    }

    public String getItem41() {
        return this.item41;
    }

    public String getItem42() {
        return this.item42;
    }

    public String getItem43() {
        return this.item43;
    }

    public String getItem44() {
        return this.item44;
    }

    public String getItem45() {
        return this.item45;
    }

    public String getItem46() {
        return this.item46;
    }

    public String getItem47() {
        return this.item47;
    }

    public String getItem48() {
        return this.item48;
    }

    public String getItem49() {
        return this.item49;
    }

    public String getItem50() {
        return this.item50;
    }

    public String getItem51() {
        return this.item51;
    }

    public String getItem52() {
        return this.item52;
    }

    public String getItem53() {
        return this.item53;
    }

    public String getItem54() {
        return this.item54;
    }

    public String getItem55() {
        return this.item55;
    }

    public String getItem56() {
        return this.item56;
    }

    public String getItem57() {
        return this.item57;
    }

    public String getItem58() {
        return this.item58;
    }

    public String getItem59() {
        return this.item59;
    }

    public String getItem60() {
        return this.item60;
    }

    public String getItem61() {
        return this.item61;
    }

    public String getItem62() {
        return this.item62;
    }

    public String getItem63() {
        return this.item63;
    }

    public String getItem64() {
        return this.item64;
    }

    public String getItem65() {
        return this.item65;
    }

    public String getItem66() {
        return this.item66;
    }

    public String getItem67() {
        return this.item67;
    }

    public String getItem68() {
        return this.item68;
    }

    public String getItem69() {
        return this.item69;
    }

    public String getItem70() {
        return this.item70;
    }

    public String getIsColumnName() {
        return this.isColumnName;
    }

    public String getColumnNameType() {
        return this.columnNameType;
    }

    public Long getLineNum() {
        return this.lineNum;
    }

    public Date getImportDate() {
        return this.importDate;
    }

    public Long getImportBy() {
        return this.importBy;
    }

    public void setId(final String id) {
        this.id = id;
    }

    public void setBatchCode(final String batchCode) {
        this.batchCode = batchCode;
    }

    public void setSheetName(final String sheetName) {
        this.sheetName = sheetName;
    }

    public void setItem1(final String item1) {
        this.item1 = item1;
    }

    public void setItem2(final String item2) {
        this.item2 = item2;
    }

    public void setItem3(final String item3) {
        this.item3 = item3;
    }

    public void setItem4(final String item4) {
        this.item4 = item4;
    }

    public void setItem5(final String item5) {
        this.item5 = item5;
    }

    public void setItem6(final String item6) {
        this.item6 = item6;
    }

    public void setItem7(final String item7) {
        this.item7 = item7;
    }

    public void setItem8(final String item8) {
        this.item8 = item8;
    }

    public void setItem9(final String item9) {
        this.item9 = item9;
    }

    public void setItem10(final String item10) {
        this.item10 = item10;
    }

    public void setItem11(final String item11) {
        this.item11 = item11;
    }

    public void setItem12(final String item12) {
        this.item12 = item12;
    }

    public void setItem13(final String item13) {
        this.item13 = item13;
    }

    public void setItem14(final String item14) {
        this.item14 = item14;
    }

    public void setItem15(final String item15) {
        this.item15 = item15;
    }

    public void setItem16(final String item16) {
        this.item16 = item16;
    }

    public void setItem17(final String item17) {
        this.item17 = item17;
    }

    public void setItem18(final String item18) {
        this.item18 = item18;
    }

    public void setItem19(final String item19) {
        this.item19 = item19;
    }

    public void setItem20(final String item20) {
        this.item20 = item20;
    }

    public void setItem21(final String item21) {
        this.item21 = item21;
    }

    public void setItem22(final String item22) {
        this.item22 = item22;
    }

    public void setItem23(final String item23) {
        this.item23 = item23;
    }

    public void setItem24(final String item24) {
        this.item24 = item24;
    }

    public void setItem25(final String item25) {
        this.item25 = item25;
    }

    public void setItem26(final String item26) {
        this.item26 = item26;
    }

    public void setItem27(final String item27) {
        this.item27 = item27;
    }

    public void setItem28(final String item28) {
        this.item28 = item28;
    }

    public void setItem29(final String item29) {
        this.item29 = item29;
    }

    public void setItem30(final String item30) {
        this.item30 = item30;
    }

    public void setItem31(final String item31) {
        this.item31 = item31;
    }

    public void setItem32(final String item32) {
        this.item32 = item32;
    }

    public void setItem33(final String item33) {
        this.item33 = item33;
    }

    public void setItem34(final String item34) {
        this.item34 = item34;
    }

    public void setItem35(final String item35) {
        this.item35 = item35;
    }

    public void setItem36(final String item36) {
        this.item36 = item36;
    }

    public void setItem37(final String item37) {
        this.item37 = item37;
    }

    public void setItem38(final String item38) {
        this.item38 = item38;
    }

    public void setItem39(final String item39) {
        this.item39 = item39;
    }

    public void setItem40(final String item40) {
        this.item40 = item40;
    }

    public void setItem41(final String item41) {
        this.item41 = item41;
    }

    public void setItem42(final String item42) {
        this.item42 = item42;
    }

    public void setItem43(final String item43) {
        this.item43 = item43;
    }

    public void setItem44(final String item44) {
        this.item44 = item44;
    }

    public void setItem45(final String item45) {
        this.item45 = item45;
    }

    public void setItem46(final String item46) {
        this.item46 = item46;
    }

    public void setItem47(final String item47) {
        this.item47 = item47;
    }

    public void setItem48(final String item48) {
        this.item48 = item48;
    }

    public void setItem49(final String item49) {
        this.item49 = item49;
    }

    public void setItem50(final String item50) {
        this.item50 = item50;
    }

    public void setItem51(final String item51) {
        this.item51 = item51;
    }

    public void setItem52(final String item52) {
        this.item52 = item52;
    }

    public void setItem53(final String item53) {
        this.item53 = item53;
    }

    public void setItem54(final String item54) {
        this.item54 = item54;
    }

    public void setItem55(final String item55) {
        this.item55 = item55;
    }

    public void setItem56(final String item56) {
        this.item56 = item56;
    }

    public void setItem57(final String item57) {
        this.item57 = item57;
    }

    public void setItem58(final String item58) {
        this.item58 = item58;
    }

    public void setItem59(final String item59) {
        this.item59 = item59;
    }

    public void setItem60(final String item60) {
        this.item60 = item60;
    }

    public void setItem61(final String item61) {
        this.item61 = item61;
    }

    public void setItem62(final String item62) {
        this.item62 = item62;
    }

    public void setItem63(final String item63) {
        this.item63 = item63;
    }

    public void setItem64(final String item64) {
        this.item64 = item64;
    }

    public void setItem65(final String item65) {
        this.item65 = item65;
    }

    public void setItem66(final String item66) {
        this.item66 = item66;
    }

    public void setItem67(final String item67) {
        this.item67 = item67;
    }

    public void setItem68(final String item68) {
        this.item68 = item68;
    }

    public void setItem69(final String item69) {
        this.item69 = item69;
    }

    public void setItem70(final String item70) {
        this.item70 = item70;
    }

    public void setIsColumnName(final String isColumnName) {
        this.isColumnName = isColumnName;
    }

    public void setColumnNameType(final String columnNameType) {
        this.columnNameType = columnNameType;
    }

    public void setLineNum(final Long lineNum) {
        this.lineNum = lineNum;
    }

    public void setImportDate(final Date importDate) {
        this.importDate = importDate;
    }

    public void setImportBy(final Long importBy) {
        this.importBy = importBy;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof ExcelImpData)) {
            return false;
        } else {
            ExcelImpData other = (ExcelImpData)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$id = this.getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }

                Object this$batchCode = this.getBatchCode();
                Object other$batchCode = other.getBatchCode();
                if (this$batchCode == null) {
                    if (other$batchCode != null) {
                        return false;
                    }
                } else if (!this$batchCode.equals(other$batchCode)) {
                    return false;
                }

                Object this$sheetName = this.getSheetName();
                Object other$sheetName = other.getSheetName();
                if (this$sheetName == null) {
                    if (other$sheetName != null) {
                        return false;
                    }
                } else if (!this$sheetName.equals(other$sheetName)) {
                    return false;
                }

                label926: {
                    Object this$item1 = this.getItem1();
                    Object other$item1 = other.getItem1();
                    if (this$item1 == null) {
                        if (other$item1 == null) {
                            break label926;
                        }
                    } else if (this$item1.equals(other$item1)) {
                        break label926;
                    }

                    return false;
                }

                label919: {
                    Object this$item2 = this.getItem2();
                    Object other$item2 = other.getItem2();
                    if (this$item2 == null) {
                        if (other$item2 == null) {
                            break label919;
                        }
                    } else if (this$item2.equals(other$item2)) {
                        break label919;
                    }

                    return false;
                }

                Object this$item3 = this.getItem3();
                Object other$item3 = other.getItem3();
                if (this$item3 == null) {
                    if (other$item3 != null) {
                        return false;
                    }
                } else if (!this$item3.equals(other$item3)) {
                    return false;
                }

                label905: {
                    Object this$item4 = this.getItem4();
                    Object other$item4 = other.getItem4();
                    if (this$item4 == null) {
                        if (other$item4 == null) {
                            break label905;
                        }
                    } else if (this$item4.equals(other$item4)) {
                        break label905;
                    }

                    return false;
                }

                label898: {
                    Object this$item5 = this.getItem5();
                    Object other$item5 = other.getItem5();
                    if (this$item5 == null) {
                        if (other$item5 == null) {
                            break label898;
                        }
                    } else if (this$item5.equals(other$item5)) {
                        break label898;
                    }

                    return false;
                }

                Object this$item6 = this.getItem6();
                Object other$item6 = other.getItem6();
                if (this$item6 == null) {
                    if (other$item6 != null) {
                        return false;
                    }
                } else if (!this$item6.equals(other$item6)) {
                    return false;
                }

                Object this$item7 = this.getItem7();
                Object other$item7 = other.getItem7();
                if (this$item7 == null) {
                    if (other$item7 != null) {
                        return false;
                    }
                } else if (!this$item7.equals(other$item7)) {
                    return false;
                }

                label877: {
                    Object this$item8 = this.getItem8();
                    Object other$item8 = other.getItem8();
                    if (this$item8 == null) {
                        if (other$item8 == null) {
                            break label877;
                        }
                    } else if (this$item8.equals(other$item8)) {
                        break label877;
                    }

                    return false;
                }

                label870: {
                    Object this$item9 = this.getItem9();
                    Object other$item9 = other.getItem9();
                    if (this$item9 == null) {
                        if (other$item9 == null) {
                            break label870;
                        }
                    } else if (this$item9.equals(other$item9)) {
                        break label870;
                    }

                    return false;
                }

                Object this$item10 = this.getItem10();
                Object other$item10 = other.getItem10();
                if (this$item10 == null) {
                    if (other$item10 != null) {
                        return false;
                    }
                } else if (!this$item10.equals(other$item10)) {
                    return false;
                }

                label856: {
                    Object this$item11 = this.getItem11();
                    Object other$item11 = other.getItem11();
                    if (this$item11 == null) {
                        if (other$item11 == null) {
                            break label856;
                        }
                    } else if (this$item11.equals(other$item11)) {
                        break label856;
                    }

                    return false;
                }

                Object this$item12 = this.getItem12();
                Object other$item12 = other.getItem12();
                if (this$item12 == null) {
                    if (other$item12 != null) {
                        return false;
                    }
                } else if (!this$item12.equals(other$item12)) {
                    return false;
                }

                label842: {
                    Object this$item13 = this.getItem13();
                    Object other$item13 = other.getItem13();
                    if (this$item13 == null) {
                        if (other$item13 == null) {
                            break label842;
                        }
                    } else if (this$item13.equals(other$item13)) {
                        break label842;
                    }

                    return false;
                }

                Object this$item14 = this.getItem14();
                Object other$item14 = other.getItem14();
                if (this$item14 == null) {
                    if (other$item14 != null) {
                        return false;
                    }
                } else if (!this$item14.equals(other$item14)) {
                    return false;
                }

                Object this$item15 = this.getItem15();
                Object other$item15 = other.getItem15();
                if (this$item15 == null) {
                    if (other$item15 != null) {
                        return false;
                    }
                } else if (!this$item15.equals(other$item15)) {
                    return false;
                }

                Object this$item16 = this.getItem16();
                Object other$item16 = other.getItem16();
                if (this$item16 == null) {
                    if (other$item16 != null) {
                        return false;
                    }
                } else if (!this$item16.equals(other$item16)) {
                    return false;
                }

                label814: {
                    Object this$item17 = this.getItem17();
                    Object other$item17 = other.getItem17();
                    if (this$item17 == null) {
                        if (other$item17 == null) {
                            break label814;
                        }
                    } else if (this$item17.equals(other$item17)) {
                        break label814;
                    }

                    return false;
                }

                label807: {
                    Object this$item18 = this.getItem18();
                    Object other$item18 = other.getItem18();
                    if (this$item18 == null) {
                        if (other$item18 == null) {
                            break label807;
                        }
                    } else if (this$item18.equals(other$item18)) {
                        break label807;
                    }

                    return false;
                }

                Object this$item19 = this.getItem19();
                Object other$item19 = other.getItem19();
                if (this$item19 == null) {
                    if (other$item19 != null) {
                        return false;
                    }
                } else if (!this$item19.equals(other$item19)) {
                    return false;
                }

                label793: {
                    Object this$item20 = this.getItem20();
                    Object other$item20 = other.getItem20();
                    if (this$item20 == null) {
                        if (other$item20 == null) {
                            break label793;
                        }
                    } else if (this$item20.equals(other$item20)) {
                        break label793;
                    }

                    return false;
                }

                label786: {
                    Object this$item21 = this.getItem21();
                    Object other$item21 = other.getItem21();
                    if (this$item21 == null) {
                        if (other$item21 == null) {
                            break label786;
                        }
                    } else if (this$item21.equals(other$item21)) {
                        break label786;
                    }

                    return false;
                }

                Object this$item22 = this.getItem22();
                Object other$item22 = other.getItem22();
                if (this$item22 == null) {
                    if (other$item22 != null) {
                        return false;
                    }
                } else if (!this$item22.equals(other$item22)) {
                    return false;
                }

                Object this$item23 = this.getItem23();
                Object other$item23 = other.getItem23();
                if (this$item23 == null) {
                    if (other$item23 != null) {
                        return false;
                    }
                } else if (!this$item23.equals(other$item23)) {
                    return false;
                }

                label765: {
                    Object this$item24 = this.getItem24();
                    Object other$item24 = other.getItem24();
                    if (this$item24 == null) {
                        if (other$item24 == null) {
                            break label765;
                        }
                    } else if (this$item24.equals(other$item24)) {
                        break label765;
                    }

                    return false;
                }

                label758: {
                    Object this$item25 = this.getItem25();
                    Object other$item25 = other.getItem25();
                    if (this$item25 == null) {
                        if (other$item25 == null) {
                            break label758;
                        }
                    } else if (this$item25.equals(other$item25)) {
                        break label758;
                    }

                    return false;
                }

                Object this$item26 = this.getItem26();
                Object other$item26 = other.getItem26();
                if (this$item26 == null) {
                    if (other$item26 != null) {
                        return false;
                    }
                } else if (!this$item26.equals(other$item26)) {
                    return false;
                }

                label744: {
                    Object this$item27 = this.getItem27();
                    Object other$item27 = other.getItem27();
                    if (this$item27 == null) {
                        if (other$item27 == null) {
                            break label744;
                        }
                    } else if (this$item27.equals(other$item27)) {
                        break label744;
                    }

                    return false;
                }

                Object this$item28 = this.getItem28();
                Object other$item28 = other.getItem28();
                if (this$item28 == null) {
                    if (other$item28 != null) {
                        return false;
                    }
                } else if (!this$item28.equals(other$item28)) {
                    return false;
                }

                label730: {
                    Object this$item29 = this.getItem29();
                    Object other$item29 = other.getItem29();
                    if (this$item29 == null) {
                        if (other$item29 == null) {
                            break label730;
                        }
                    } else if (this$item29.equals(other$item29)) {
                        break label730;
                    }

                    return false;
                }

                Object this$item30 = this.getItem30();
                Object other$item30 = other.getItem30();
                if (this$item30 == null) {
                    if (other$item30 != null) {
                        return false;
                    }
                } else if (!this$item30.equals(other$item30)) {
                    return false;
                }

                Object this$item31 = this.getItem31();
                Object other$item31 = other.getItem31();
                if (this$item31 == null) {
                    if (other$item31 != null) {
                        return false;
                    }
                } else if (!this$item31.equals(other$item31)) {
                    return false;
                }

                Object this$item32 = this.getItem32();
                Object other$item32 = other.getItem32();
                if (this$item32 == null) {
                    if (other$item32 != null) {
                        return false;
                    }
                } else if (!this$item32.equals(other$item32)) {
                    return false;
                }

                label702: {
                    Object this$item33 = this.getItem33();
                    Object other$item33 = other.getItem33();
                    if (this$item33 == null) {
                        if (other$item33 == null) {
                            break label702;
                        }
                    } else if (this$item33.equals(other$item33)) {
                        break label702;
                    }

                    return false;
                }

                label695: {
                    Object this$item34 = this.getItem34();
                    Object other$item34 = other.getItem34();
                    if (this$item34 == null) {
                        if (other$item34 == null) {
                            break label695;
                        }
                    } else if (this$item34.equals(other$item34)) {
                        break label695;
                    }

                    return false;
                }

                Object this$item35 = this.getItem35();
                Object other$item35 = other.getItem35();
                if (this$item35 == null) {
                    if (other$item35 != null) {
                        return false;
                    }
                } else if (!this$item35.equals(other$item35)) {
                    return false;
                }

                label681: {
                    Object this$item36 = this.getItem36();
                    Object other$item36 = other.getItem36();
                    if (this$item36 == null) {
                        if (other$item36 == null) {
                            break label681;
                        }
                    } else if (this$item36.equals(other$item36)) {
                        break label681;
                    }

                    return false;
                }

                label674: {
                    Object this$item37 = this.getItem37();
                    Object other$item37 = other.getItem37();
                    if (this$item37 == null) {
                        if (other$item37 == null) {
                            break label674;
                        }
                    } else if (this$item37.equals(other$item37)) {
                        break label674;
                    }

                    return false;
                }

                Object this$item38 = this.getItem38();
                Object other$item38 = other.getItem38();
                if (this$item38 == null) {
                    if (other$item38 != null) {
                        return false;
                    }
                } else if (!this$item38.equals(other$item38)) {
                    return false;
                }

                Object this$item39 = this.getItem39();
                Object other$item39 = other.getItem39();
                if (this$item39 == null) {
                    if (other$item39 != null) {
                        return false;
                    }
                } else if (!this$item39.equals(other$item39)) {
                    return false;
                }

                label653: {
                    Object this$item40 = this.getItem40();
                    Object other$item40 = other.getItem40();
                    if (this$item40 == null) {
                        if (other$item40 == null) {
                            break label653;
                        }
                    } else if (this$item40.equals(other$item40)) {
                        break label653;
                    }

                    return false;
                }

                label646: {
                    Object this$item41 = this.getItem41();
                    Object other$item41 = other.getItem41();
                    if (this$item41 == null) {
                        if (other$item41 == null) {
                            break label646;
                        }
                    } else if (this$item41.equals(other$item41)) {
                        break label646;
                    }

                    return false;
                }

                Object this$item42 = this.getItem42();
                Object other$item42 = other.getItem42();
                if (this$item42 == null) {
                    if (other$item42 != null) {
                        return false;
                    }
                } else if (!this$item42.equals(other$item42)) {
                    return false;
                }

                label632: {
                    Object this$item43 = this.getItem43();
                    Object other$item43 = other.getItem43();
                    if (this$item43 == null) {
                        if (other$item43 == null) {
                            break label632;
                        }
                    } else if (this$item43.equals(other$item43)) {
                        break label632;
                    }

                    return false;
                }

                Object this$item44 = this.getItem44();
                Object other$item44 = other.getItem44();
                if (this$item44 == null) {
                    if (other$item44 != null) {
                        return false;
                    }
                } else if (!this$item44.equals(other$item44)) {
                    return false;
                }

                label618: {
                    Object this$item45 = this.getItem45();
                    Object other$item45 = other.getItem45();
                    if (this$item45 == null) {
                        if (other$item45 == null) {
                            break label618;
                        }
                    } else if (this$item45.equals(other$item45)) {
                        break label618;
                    }

                    return false;
                }

                Object this$item46 = this.getItem46();
                Object other$item46 = other.getItem46();
                if (this$item46 == null) {
                    if (other$item46 != null) {
                        return false;
                    }
                } else if (!this$item46.equals(other$item46)) {
                    return false;
                }

                Object this$item47 = this.getItem47();
                Object other$item47 = other.getItem47();
                if (this$item47 == null) {
                    if (other$item47 != null) {
                        return false;
                    }
                } else if (!this$item47.equals(other$item47)) {
                    return false;
                }

                Object this$item48 = this.getItem48();
                Object other$item48 = other.getItem48();
                if (this$item48 == null) {
                    if (other$item48 != null) {
                        return false;
                    }
                } else if (!this$item48.equals(other$item48)) {
                    return false;
                }

                label590: {
                    Object this$item49 = this.getItem49();
                    Object other$item49 = other.getItem49();
                    if (this$item49 == null) {
                        if (other$item49 == null) {
                            break label590;
                        }
                    } else if (this$item49.equals(other$item49)) {
                        break label590;
                    }

                    return false;
                }

                label583: {
                    Object this$item50 = this.getItem50();
                    Object other$item50 = other.getItem50();
                    if (this$item50 == null) {
                        if (other$item50 == null) {
                            break label583;
                        }
                    } else if (this$item50.equals(other$item50)) {
                        break label583;
                    }

                    return false;
                }

                Object this$item51 = this.getItem51();
                Object other$item51 = other.getItem51();
                if (this$item51 == null) {
                    if (other$item51 != null) {
                        return false;
                    }
                } else if (!this$item51.equals(other$item51)) {
                    return false;
                }

                label569: {
                    Object this$item52 = this.getItem52();
                    Object other$item52 = other.getItem52();
                    if (this$item52 == null) {
                        if (other$item52 == null) {
                            break label569;
                        }
                    } else if (this$item52.equals(other$item52)) {
                        break label569;
                    }

                    return false;
                }

                label562: {
                    Object this$item53 = this.getItem53();
                    Object other$item53 = other.getItem53();
                    if (this$item53 == null) {
                        if (other$item53 == null) {
                            break label562;
                        }
                    } else if (this$item53.equals(other$item53)) {
                        break label562;
                    }

                    return false;
                }

                Object this$item54 = this.getItem54();
                Object other$item54 = other.getItem54();
                if (this$item54 == null) {
                    if (other$item54 != null) {
                        return false;
                    }
                } else if (!this$item54.equals(other$item54)) {
                    return false;
                }

                Object this$item55 = this.getItem55();
                Object other$item55 = other.getItem55();
                if (this$item55 == null) {
                    if (other$item55 != null) {
                        return false;
                    }
                } else if (!this$item55.equals(other$item55)) {
                    return false;
                }

                label541: {
                    Object this$item56 = this.getItem56();
                    Object other$item56 = other.getItem56();
                    if (this$item56 == null) {
                        if (other$item56 == null) {
                            break label541;
                        }
                    } else if (this$item56.equals(other$item56)) {
                        break label541;
                    }

                    return false;
                }

                label534: {
                    Object this$item57 = this.getItem57();
                    Object other$item57 = other.getItem57();
                    if (this$item57 == null) {
                        if (other$item57 == null) {
                            break label534;
                        }
                    } else if (this$item57.equals(other$item57)) {
                        break label534;
                    }

                    return false;
                }

                Object this$item58 = this.getItem58();
                Object other$item58 = other.getItem58();
                if (this$item58 == null) {
                    if (other$item58 != null) {
                        return false;
                    }
                } else if (!this$item58.equals(other$item58)) {
                    return false;
                }

                label520: {
                    Object this$item59 = this.getItem59();
                    Object other$item59 = other.getItem59();
                    if (this$item59 == null) {
                        if (other$item59 == null) {
                            break label520;
                        }
                    } else if (this$item59.equals(other$item59)) {
                        break label520;
                    }

                    return false;
                }

                Object this$item60 = this.getItem60();
                Object other$item60 = other.getItem60();
                if (this$item60 == null) {
                    if (other$item60 != null) {
                        return false;
                    }
                } else if (!this$item60.equals(other$item60)) {
                    return false;
                }

                label506: {
                    Object this$item61 = this.getItem61();
                    Object other$item61 = other.getItem61();
                    if (this$item61 == null) {
                        if (other$item61 == null) {
                            break label506;
                        }
                    } else if (this$item61.equals(other$item61)) {
                        break label506;
                    }

                    return false;
                }

                Object this$item62 = this.getItem62();
                Object other$item62 = other.getItem62();
                if (this$item62 == null) {
                    if (other$item62 != null) {
                        return false;
                    }
                } else if (!this$item62.equals(other$item62)) {
                    return false;
                }

                Object this$item63 = this.getItem63();
                Object other$item63 = other.getItem63();
                if (this$item63 == null) {
                    if (other$item63 != null) {
                        return false;
                    }
                } else if (!this$item63.equals(other$item63)) {
                    return false;
                }

                Object this$item64 = this.getItem64();
                Object other$item64 = other.getItem64();
                if (this$item64 == null) {
                    if (other$item64 != null) {
                        return false;
                    }
                } else if (!this$item64.equals(other$item64)) {
                    return false;
                }

                label478: {
                    Object this$item65 = this.getItem65();
                    Object other$item65 = other.getItem65();
                    if (this$item65 == null) {
                        if (other$item65 == null) {
                            break label478;
                        }
                    } else if (this$item65.equals(other$item65)) {
                        break label478;
                    }

                    return false;
                }

                label471: {
                    Object this$item66 = this.getItem66();
                    Object other$item66 = other.getItem66();
                    if (this$item66 == null) {
                        if (other$item66 == null) {
                            break label471;
                        }
                    } else if (this$item66.equals(other$item66)) {
                        break label471;
                    }

                    return false;
                }

                Object this$item67 = this.getItem67();
                Object other$item67 = other.getItem67();
                if (this$item67 == null) {
                    if (other$item67 != null) {
                        return false;
                    }
                } else if (!this$item67.equals(other$item67)) {
                    return false;
                }

                label457: {
                    Object this$item68 = this.getItem68();
                    Object other$item68 = other.getItem68();
                    if (this$item68 == null) {
                        if (other$item68 == null) {
                            break label457;
                        }
                    } else if (this$item68.equals(other$item68)) {
                        break label457;
                    }

                    return false;
                }

                label450: {
                    Object this$item69 = this.getItem69();
                    Object other$item69 = other.getItem69();
                    if (this$item69 == null) {
                        if (other$item69 == null) {
                            break label450;
                        }
                    } else if (this$item69.equals(other$item69)) {
                        break label450;
                    }

                    return false;
                }

                Object this$item70 = this.getItem70();
                Object other$item70 = other.getItem70();
                if (this$item70 == null) {
                    if (other$item70 != null) {
                        return false;
                    }
                } else if (!this$item70.equals(other$item70)) {
                    return false;
                }

                Object this$isColumnName = this.getIsColumnName();
                Object other$isColumnName = other.getIsColumnName();
                if (this$isColumnName == null) {
                    if (other$isColumnName != null) {
                        return false;
                    }
                } else if (!this$isColumnName.equals(other$isColumnName)) {
                    return false;
                }

                label429: {
                    Object this$columnNameType = this.getColumnNameType();
                    Object other$columnNameType = other.getColumnNameType();
                    if (this$columnNameType == null) {
                        if (other$columnNameType == null) {
                            break label429;
                        }
                    } else if (this$columnNameType.equals(other$columnNameType)) {
                        break label429;
                    }

                    return false;
                }

                label422: {
                    Object this$lineNum = this.getLineNum();
                    Object other$lineNum = other.getLineNum();
                    if (this$lineNum == null) {
                        if (other$lineNum == null) {
                            break label422;
                        }
                    } else if (this$lineNum.equals(other$lineNum)) {
                        break label422;
                    }

                    return false;
                }

                Object this$importDate = this.getImportDate();
                Object other$importDate = other.getImportDate();
                if (this$importDate == null) {
                    if (other$importDate != null) {
                        return false;
                    }
                } else if (!this$importDate.equals(other$importDate)) {
                    return false;
                }

                Object this$importBy = this.getImportBy();
                Object other$importBy = other.getImportBy();
                if (this$importBy == null) {
                    if (other$importBy != null) {
                        return false;
                    }
                } else if (!this$importBy.equals(other$importBy)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ExcelImpData;
    }

    public int hashCode() {
        int PRIME = true;
        int result = 1;
        Object $id = this.getId();
        int result = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $batchCode = this.getBatchCode();
        result = result * 59 + ($batchCode == null ? 43 : $batchCode.hashCode());
        Object $sheetName = this.getSheetName();
        result = result * 59 + ($sheetName == null ? 43 : $sheetName.hashCode());
        Object $item1 = this.getItem1();
        result = result * 59 + ($item1 == null ? 43 : $item1.hashCode());
        Object $item2 = this.getItem2();
        result = result * 59 + ($item2 == null ? 43 : $item2.hashCode());
        Object $item3 = this.getItem3();
        result = result * 59 + ($item3 == null ? 43 : $item3.hashCode());
        Object $item4 = this.getItem4();
        result = result * 59 + ($item4 == null ? 43 : $item4.hashCode());
        Object $item5 = this.getItem5();
        result = result * 59 + ($item5 == null ? 43 : $item5.hashCode());
        Object $item6 = this.getItem6();
        result = result * 59 + ($item6 == null ? 43 : $item6.hashCode());
        Object $item7 = this.getItem7();
        result = result * 59 + ($item7 == null ? 43 : $item7.hashCode());
        Object $item8 = this.getItem8();
        result = result * 59 + ($item8 == null ? 43 : $item8.hashCode());
        Object $item9 = this.getItem9();
        result = result * 59 + ($item9 == null ? 43 : $item9.hashCode());
        Object $item10 = this.getItem10();
        result = result * 59 + ($item10 == null ? 43 : $item10.hashCode());
        Object $item11 = this.getItem11();
        result = result * 59 + ($item11 == null ? 43 : $item11.hashCode());
        Object $item12 = this.getItem12();
        result = result * 59 + ($item12 == null ? 43 : $item12.hashCode());
        Object $item13 = this.getItem13();
        result = result * 59 + ($item13 == null ? 43 : $item13.hashCode());
        Object $item14 = this.getItem14();
        result = result * 59 + ($item14 == null ? 43 : $item14.hashCode());
        Object $item15 = this.getItem15();
        result = result * 59 + ($item15 == null ? 43 : $item15.hashCode());
        Object $item16 = this.getItem16();
        result = result * 59 + ($item16 == null ? 43 : $item16.hashCode());
        Object $item17 = this.getItem17();
        result = result * 59 + ($item17 == null ? 43 : $item17.hashCode());
        Object $item18 = this.getItem18();
        result = result * 59 + ($item18 == null ? 43 : $item18.hashCode());
        Object $item19 = this.getItem19();
        result = result * 59 + ($item19 == null ? 43 : $item19.hashCode());
        Object $item20 = this.getItem20();
        result = result * 59 + ($item20 == null ? 43 : $item20.hashCode());
        Object $item21 = this.getItem21();
        result = result * 59 + ($item21 == null ? 43 : $item21.hashCode());
        Object $item22 = this.getItem22();
        result = result * 59 + ($item22 == null ? 43 : $item22.hashCode());
        Object $item23 = this.getItem23();
        result = result * 59 + ($item23 == null ? 43 : $item23.hashCode());
        Object $item24 = this.getItem24();
        result = result * 59 + ($item24 == null ? 43 : $item24.hashCode());
        Object $item25 = this.getItem25();
        result = result * 59 + ($item25 == null ? 43 : $item25.hashCode());
        Object $item26 = this.getItem26();
        result = result * 59 + ($item26 == null ? 43 : $item26.hashCode());
        Object $item27 = this.getItem27();
        result = result * 59 + ($item27 == null ? 43 : $item27.hashCode());
        Object $item28 = this.getItem28();
        result = result * 59 + ($item28 == null ? 43 : $item28.hashCode());
        Object $item29 = this.getItem29();
        result = result * 59 + ($item29 == null ? 43 : $item29.hashCode());
        Object $item30 = this.getItem30();
        result = result * 59 + ($item30 == null ? 43 : $item30.hashCode());
        Object $item31 = this.getItem31();
        result = result * 59 + ($item31 == null ? 43 : $item31.hashCode());
        Object $item32 = this.getItem32();
        result = result * 59 + ($item32 == null ? 43 : $item32.hashCode());
        Object $item33 = this.getItem33();
        result = result * 59 + ($item33 == null ? 43 : $item33.hashCode());
        Object $item34 = this.getItem34();
        result = result * 59 + ($item34 == null ? 43 : $item34.hashCode());
        Object $item35 = this.getItem35();
        result = result * 59 + ($item35 == null ? 43 : $item35.hashCode());
        Object $item36 = this.getItem36();
        result = result * 59 + ($item36 == null ? 43 : $item36.hashCode());
        Object $item37 = this.getItem37();
        result = result * 59 + ($item37 == null ? 43 : $item37.hashCode());
        Object $item38 = this.getItem38();
        result = result * 59 + ($item38 == null ? 43 : $item38.hashCode());
        Object $item39 = this.getItem39();
        result = result * 59 + ($item39 == null ? 43 : $item39.hashCode());
        Object $item40 = this.getItem40();
        result = result * 59 + ($item40 == null ? 43 : $item40.hashCode());
        Object $item41 = this.getItem41();
        result = result * 59 + ($item41 == null ? 43 : $item41.hashCode());
        Object $item42 = this.getItem42();
        result = result * 59 + ($item42 == null ? 43 : $item42.hashCode());
        Object $item43 = this.getItem43();
        result = result * 59 + ($item43 == null ? 43 : $item43.hashCode());
        Object $item44 = this.getItem44();
        result = result * 59 + ($item44 == null ? 43 : $item44.hashCode());
        Object $item45 = this.getItem45();
        result = result * 59 + ($item45 == null ? 43 : $item45.hashCode());
        Object $item46 = this.getItem46();
        result = result * 59 + ($item46 == null ? 43 : $item46.hashCode());
        Object $item47 = this.getItem47();
        result = result * 59 + ($item47 == null ? 43 : $item47.hashCode());
        Object $item48 = this.getItem48();
        result = result * 59 + ($item48 == null ? 43 : $item48.hashCode());
        Object $item49 = this.getItem49();
        result = result * 59 + ($item49 == null ? 43 : $item49.hashCode());
        Object $item50 = this.getItem50();
        result = result * 59 + ($item50 == null ? 43 : $item50.hashCode());
        Object $item51 = this.getItem51();
        result = result * 59 + ($item51 == null ? 43 : $item51.hashCode());
        Object $item52 = this.getItem52();
        result = result * 59 + ($item52 == null ? 43 : $item52.hashCode());
        Object $item53 = this.getItem53();
        result = result * 59 + ($item53 == null ? 43 : $item53.hashCode());
        Object $item54 = this.getItem54();
        result = result * 59 + ($item54 == null ? 43 : $item54.hashCode());
        Object $item55 = this.getItem55();
        result = result * 59 + ($item55 == null ? 43 : $item55.hashCode());
        Object $item56 = this.getItem56();
        result = result * 59 + ($item56 == null ? 43 : $item56.hashCode());
        Object $item57 = this.getItem57();
        result = result * 59 + ($item57 == null ? 43 : $item57.hashCode());
        Object $item58 = this.getItem58();
        result = result * 59 + ($item58 == null ? 43 : $item58.hashCode());
        Object $item59 = this.getItem59();
        result = result * 59 + ($item59 == null ? 43 : $item59.hashCode());
        Object $item60 = this.getItem60();
        result = result * 59 + ($item60 == null ? 43 : $item60.hashCode());
        Object $item61 = this.getItem61();
        result = result * 59 + ($item61 == null ? 43 : $item61.hashCode());
        Object $item62 = this.getItem62();
        result = result * 59 + ($item62 == null ? 43 : $item62.hashCode());
        Object $item63 = this.getItem63();
        result = result * 59 + ($item63 == null ? 43 : $item63.hashCode());
        Object $item64 = this.getItem64();
        result = result * 59 + ($item64 == null ? 43 : $item64.hashCode());
        Object $item65 = this.getItem65();
        result = result * 59 + ($item65 == null ? 43 : $item65.hashCode());
        Object $item66 = this.getItem66();
        result = result * 59 + ($item66 == null ? 43 : $item66.hashCode());
        Object $item67 = this.getItem67();
        result = result * 59 + ($item67 == null ? 43 : $item67.hashCode());
        Object $item68 = this.getItem68();
        result = result * 59 + ($item68 == null ? 43 : $item68.hashCode());
        Object $item69 = this.getItem69();
        result = result * 59 + ($item69 == null ? 43 : $item69.hashCode());
        Object $item70 = this.getItem70();
        result = result * 59 + ($item70 == null ? 43 : $item70.hashCode());
        Object $isColumnName = this.getIsColumnName();
        result = result * 59 + ($isColumnName == null ? 43 : $isColumnName.hashCode());
        Object $columnNameType = this.getColumnNameType();
        result = result * 59 + ($columnNameType == null ? 43 : $columnNameType.hashCode());
        Object $lineNum = this.getLineNum();
        result = result * 59 + ($lineNum == null ? 43 : $lineNum.hashCode());
        Object $importDate = this.getImportDate();
        result = result * 59 + ($importDate == null ? 43 : $importDate.hashCode());
        Object $importBy = this.getImportBy();
        result = result * 59 + ($importBy == null ? 43 : $importBy.hashCode());
        return result;
    }

    public String toString() {
        return "ExcelImpData(id=" + this.getId() + ", batchCode=" + this.getBatchCode() + ", sheetName=" + this.getSheetName() + ", item1=" + this.getItem1() + ", item2=" + this.getItem2() + ", item3=" + this.getItem3() + ", item4=" + this.getItem4() + ", item5=" + this.getItem5() + ", item6=" + this.getItem6() + ", item7=" + this.getItem7() + ", item8=" + this.getItem8() + ", item9=" + this.getItem9() + ", item10=" + this.getItem10() + ", item11=" + this.getItem11() + ", item12=" + this.getItem12() + ", item13=" + this.getItem13() + ", item14=" + this.getItem14() + ", item15=" + this.getItem15() + ", item16=" + this.getItem16() + ", item17=" + this.getItem17() + ", item18=" + this.getItem18() + ", item19=" + this.getItem19() + ", item20=" + this.getItem20() + ", item21=" + this.getItem21() + ", item22=" + this.getItem22() + ", item23=" + this.getItem23() + ", item24=" + this.getItem24() + ", item25=" + this.getItem25() + ", item26=" + this.getItem26() + ", item27=" + this.getItem27() + ", item28=" + this.getItem28() + ", item29=" + this.getItem29() + ", item30=" + this.getItem30() + ", item31=" + this.getItem31() + ", item32=" + this.getItem32() + ", item33=" + this.getItem33() + ", item34=" + this.getItem34() + ", item35=" + this.getItem35() + ", item36=" + this.getItem36() + ", item37=" + this.getItem37() + ", item38=" + this.getItem38() + ", item39=" + this.getItem39() + ", item40=" + this.getItem40() + ", item41=" + this.getItem41() + ", item42=" + this.getItem42() + ", item43=" + this.getItem43() + ", item44=" + this.getItem44() + ", item45=" + this.getItem45() + ", item46=" + this.getItem46() + ", item47=" + this.getItem47() + ", item48=" + this.getItem48() + ", item49=" + this.getItem49() + ", item50=" + this.getItem50() + ", item51=" + this.getItem51() + ", item52=" + this.getItem52() + ", item53=" + this.getItem53() + ", item54=" + this.getItem54() + ", item55=" + this.getItem55() + ", item56=" + this.getItem56() + ", item57=" + this.getItem57() + ", item58=" + this.getItem58() + ", item59=" + this.getItem59() + ", item60=" + this.getItem60() + ", item61=" + this.getItem61() + ", item62=" + this.getItem62() + ", item63=" + this.getItem63() + ", item64=" + this.getItem64() + ", item65=" + this.getItem65() + ", item66=" + this.getItem66() + ", item67=" + this.getItem67() + ", item68=" + this.getItem68() + ", item69=" + this.getItem69() + ", item70=" + this.getItem70() + ", isColumnName=" + this.getIsColumnName() + ", columnNameType=" + this.getColumnNameType() + ", lineNum=" + this.getLineNum() + ", importDate=" + this.getImportDate() + ", importBy=" + this.getImportBy() + ")";
    }
}

  移动开发 最新文章
Vue3装载axios和element-ui
android adb cmd
【xcode】Xcode常用快捷键与技巧
Android开发中的线程池使用
Java 和 Android 的 Base64
Android 测试文字编码格式
微信小程序支付
安卓权限记录
知乎之自动养号
【Android Jetpack】DataStore
上一篇文章      下一篇文章      查看所有文章
加:2022-03-10 22:41:17  更:2022-03-10 22:44:37 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/24 18:36:10-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码