0
|
1 package org.msgpack.testclasses;
|
|
2
|
|
3 import org.junit.Ignore;
|
|
4 import org.msgpack.annotation.Beans;
|
|
5 import org.msgpack.annotation.Message;
|
|
6 import org.msgpack.annotation.NotNullable;
|
|
7
|
|
8
|
|
9 @Ignore @Message @Beans
|
|
10 public class ModifiersFieldsClassNotNullable {
|
|
11 @NotNullable
|
|
12 public int f0;
|
|
13
|
|
14 @NotNullable
|
|
15 private int f1 = 5;
|
|
16
|
|
17 @NotNullable
|
|
18 protected int f2 = 10;
|
|
19
|
|
20 @NotNullable
|
|
21 int f3 = 15;
|
|
22
|
|
23 @NotNullable
|
|
24 public String f4;
|
|
25
|
|
26 @NotNullable
|
|
27 private String f5 = "nishizawa";
|
|
28
|
|
29 @NotNullable
|
|
30 protected String f6 = "hello";
|
|
31
|
|
32 @NotNullable
|
|
33 String f7 = "muga";
|
|
34
|
|
35 public ModifiersFieldsClassNotNullable() {}
|
|
36
|
|
37 @NotNullable
|
|
38 public int getF0() {
|
|
39 return f0;
|
|
40 }
|
|
41
|
|
42 @NotNullable
|
|
43 public void setF0(int f0) {
|
|
44 this.f0 = f0;
|
|
45 }
|
|
46
|
|
47 @NotNullable
|
|
48 public int getF2() {
|
|
49 return f2;
|
|
50 }
|
|
51
|
|
52 @NotNullable
|
|
53 public void setF2(int f2) {
|
|
54 this.f2 = f2;
|
|
55 }
|
|
56
|
|
57 @NotNullable
|
|
58 public int getF3() {
|
|
59 return f3;
|
|
60 }
|
|
61
|
|
62 @NotNullable
|
|
63 public void setF3(int f3) {
|
|
64 this.f3 = f3;
|
|
65 }
|
|
66
|
|
67 @NotNullable
|
|
68 public String getF4() {
|
|
69 return f4;
|
|
70 }
|
|
71
|
|
72 @NotNullable
|
|
73 public void setF4(String f4) {
|
|
74 this.f4 = f4;
|
|
75 }
|
|
76
|
|
77 @NotNullable
|
|
78 public String getF5() {
|
|
79 return f5;
|
|
80 }
|
|
81
|
|
82 @NotNullable
|
|
83 public void setF5(String f5) {
|
|
84 this.f5 = f5;
|
|
85 }
|
|
86
|
|
87 @NotNullable
|
|
88 public String getF6() {
|
|
89 return f6;
|
|
90 }
|
|
91
|
|
92 @NotNullable
|
|
93 public void setF6(String f6) {
|
|
94 this.f6 = f6;
|
|
95 }
|
|
96
|
|
97 @NotNullable
|
|
98 public String getF7() {
|
|
99 return f7;
|
|
100 }
|
|
101
|
|
102 @NotNullable
|
|
103 public void setF7(String f7) {
|
|
104 this.f7 = f7;
|
|
105 }
|
|
106
|
|
107 @Override
|
|
108 public boolean equals(Object o) {
|
|
109 if (! (o instanceof ModifiersFieldsClassNotNullable)) {
|
|
110 return false;
|
|
111 }
|
|
112 ModifiersFieldsClassNotNullable that = (ModifiersFieldsClassNotNullable) o;
|
|
113 if (f0 != that.f0) {
|
|
114 return false;
|
|
115 }
|
|
116 if (f1 != that.f1) {
|
|
117 return false;
|
|
118 }
|
|
119 if (f2 != that.f2) {
|
|
120 return false;
|
|
121 }
|
|
122 if (f3 != that.f3) {
|
|
123 return false;
|
|
124 }
|
|
125 if (f4 == null) {
|
|
126 if (that.f4 != null) {
|
|
127 return false;
|
|
128 }
|
|
129 }
|
|
130 if (that.f4 != null && ! f4.equals(that.f4)) {
|
|
131 return false;
|
|
132 }
|
|
133 if (f5 == null) {
|
|
134 if (that.f5 != null) {
|
|
135 return false;
|
|
136 }
|
|
137 }
|
|
138 if (that.f5 != null && ! f5.equals(that.f5)) {
|
|
139 return false;
|
|
140 }
|
|
141 if (f6 == null) {
|
|
142 if (that.f6 != null) {
|
|
143 return false;
|
|
144 }
|
|
145 }
|
|
146 if (that.f6 != null && ! f6.equals(that.f6)) {
|
|
147 return false;
|
|
148 }
|
|
149 if (f7 == null) {
|
|
150 if (that.f7 != null) {
|
|
151 return false;
|
|
152 }
|
|
153 }
|
|
154 if (that.f7 != null && ! f7.equals(that.f7)) {
|
|
155 return false;
|
|
156 }
|
|
157 return true;
|
|
158 }
|
|
159 }
|