1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.submitted.foreach_map;
17
18 import java.util.Objects;
19
20 public class NestedBeanMapEntry {
21 public NestedBeanMapEntry() {
22 }
23
24 public NestedBeanMapEntry(Integer keya, Boolean keyb, Integer valuea, Boolean valueb) {
25 this.keya = keya;
26 this.keyb = keyb;
27 this.valuea = valuea;
28 this.valueb = valueb;
29 }
30
31 public Integer getKeya() {
32 return keya;
33 }
34
35 public void setKeya(Integer keya) {
36 this.keya = keya;
37 }
38
39 public Boolean getKeyb() {
40 return keyb;
41 }
42
43 public void setKeyb(Boolean keyb) {
44 this.keyb = keyb;
45 }
46
47 public Integer getValuea() {
48 return valuea;
49 }
50
51 public void setValuea(Integer valuea) {
52 this.valuea = valuea;
53 }
54
55 public Boolean getValueb() {
56 return valueb;
57 }
58
59 public void setValueb(Boolean valueb) {
60 this.valueb = valueb;
61 }
62
63 @Override
64 public boolean equals(Object o) {
65 if (this == o)
66 return true;
67 if (o == null || getClass() != o.getClass())
68 return false;
69
70 NestedBeanMapEntry map3Entry = (NestedBeanMapEntry) o;
71
72 if (! Objects.equals(keya, map3Entry.keya))
73 return false;
74 if (! Objects.equals(keyb, map3Entry.keyb))
75 return false;
76 if (! Objects.equals(valuea, map3Entry.valuea))
77 return false;
78 if (! Objects.equals(valueb, map3Entry.valueb))
79 return false;
80
81 return true;
82 }
83
84 @Override
85 public int hashCode() {
86 int result = keya != null ? keya.hashCode() : 0;
87 result = 31 * result + (valuea != null ? valuea.hashCode() : 0);
88 result = 31 * result + (keyb != null ? keyb.hashCode() : 0);
89 result = 31 * result + (valueb != null ? valueb.hashCode() : 0);
90 return result;
91 }
92
93 @Override
94 public String toString() {
95 return "NestedBeanMapEntry{" + "keya=" + keya + ", valuea=" + valuea + ", keyb=" + keyb + ", valueb=" + valueb + '}';
96 }
97
98 private Integer keya;
99 private Boolean keyb;
100 private Integer valuea;
101 private Boolean valueb;
102 }