yangys
2024-03-28 13ada1093cb8de6e31a718d2222429ded70133c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
package com.qianwen.smartman.modules.develop.vo;
 
import java.util.List;
import com.qianwen.smartman.common.cache.RegionCache;
import org.springblade.generator.entity.PageTemplateEnum;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/develop/vo/CodeTemplateVo.class */
public class CodeTemplateVo {
    private int tempIndex;
    private String modulePath;
    private String fileName;
    private int tabNum;
    private List<CodeVo> tabs;
 
    public void setTempIndex(final int tempIndex) {
        this.tempIndex = tempIndex;
    }
 
    public void setModulePath(final String modulePath) {
        this.modulePath = modulePath;
    }
 
    public void setFileName(final String fileName) {
        this.fileName = fileName;
    }
 
    public void setTabNum(final int tabNum) {
        this.tabNum = tabNum;
    }
 
    public void setTabs(final List<CodeVo> tabs) {
        this.tabs = tabs;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof CodeTemplateVo) {
            CodeTemplateVo other = (CodeTemplateVo) o;
            if (other.canEqual(this) && getTempIndex() == other.getTempIndex() && getTabNum() == other.getTabNum()) {
                Object this$modulePath = getModulePath();
                Object other$modulePath = other.getModulePath();
                if (this$modulePath == null) {
                    if (other$modulePath != null) {
                        return false;
                    }
                } else if (!this$modulePath.equals(other$modulePath)) {
                    return false;
                }
                Object this$fileName = getFileName();
                Object other$fileName = other.getFileName();
                if (this$fileName == null) {
                    if (other$fileName != null) {
                        return false;
                    }
                } else if (!this$fileName.equals(other$fileName)) {
                    return false;
                }
                Object this$tabs = getTabs();
                Object other$tabs = other.getTabs();
                return this$tabs == null ? other$tabs == null : this$tabs.equals(other$tabs);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof CodeTemplateVo;
    }
 
    public int hashCode() {
        int result = (1 * 59) + getTempIndex();
        int result2 = (result * 59) + getTabNum();
        Object $modulePath = getModulePath();
        int result3 = (result2 * 59) + ($modulePath == null ? 43 : $modulePath.hashCode());
        Object $fileName = getFileName();
        int result4 = (result3 * 59) + ($fileName == null ? 43 : $fileName.hashCode());
        Object $tabs = getTabs();
        return (result4 * 59) + ($tabs == null ? 43 : $tabs.hashCode());
    }
 
    public String toString() {
        return "CodeTemplateVo(tempIndex=" + getTempIndex() + ", modulePath=" + getModulePath() + ", fileName=" + getFileName() + ", tabNum=" + getTabNum() + ", tabs=" + getTabs() + ")";
    }
 
    public int getTempIndex() {
        return this.tempIndex;
    }
 
    public String getModulePath() {
        return this.modulePath;
    }
 
    public String getFileName() {
        return this.fileName;
    }
 
    public int getTabNum() {
        return this.tabNum;
    }
 
    public List<CodeVo> getTabs() {
        return this.tabs;
    }
 
    public boolean isTabPage() {
        return this.tempIndex <= 3;
    }
 
    public PageTemplateEnum pageTemplate() {
        switch (this.tempIndex) {
            case 1:
            case 4:
                return PageTemplateEnum.PAGE_COLUMNS_3;
            case 2:
            case RegionCache.VILLAGE_LEVEL /* 5 */:
                return PageTemplateEnum.PAGE_COLUMNS_2;
            case 3:
            default:
                return PageTemplateEnum.PAGE_COLUMNS_1;
        }
    }
}