forked from msgpack/msgpack-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModifiersFieldsClassNotNullable.java
More file actions
159 lines (133 loc) · 2.56 KB
/
ModifiersFieldsClassNotNullable.java
File metadata and controls
159 lines (133 loc) · 2.56 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
package org.msgpack.testclasses;
import org.junit.Ignore;
import org.msgpack.annotation.Beans;
import org.msgpack.annotation.Message;
import org.msgpack.annotation.NotNullable;
@Ignore @Message @Beans
public class ModifiersFieldsClassNotNullable {
@NotNullable
public int f0;
@NotNullable
private int f1 = 5;
@NotNullable
protected int f2 = 10;
@NotNullable
int f3 = 15;
@NotNullable
public String f4;
@NotNullable
private String f5 = "nishizawa";
@NotNullable
protected String f6 = "hello";
@NotNullable
String f7 = "muga";
public ModifiersFieldsClassNotNullable() {}
@NotNullable
public int getF0() {
return f0;
}
@NotNullable
public void setF0(int f0) {
this.f0 = f0;
}
@NotNullable
public int getF2() {
return f2;
}
@NotNullable
public void setF2(int f2) {
this.f2 = f2;
}
@NotNullable
public int getF3() {
return f3;
}
@NotNullable
public void setF3(int f3) {
this.f3 = f3;
}
@NotNullable
public String getF4() {
return f4;
}
@NotNullable
public void setF4(String f4) {
this.f4 = f4;
}
@NotNullable
public String getF5() {
return f5;
}
@NotNullable
public void setF5(String f5) {
this.f5 = f5;
}
@NotNullable
public String getF6() {
return f6;
}
@NotNullable
public void setF6(String f6) {
this.f6 = f6;
}
@NotNullable
public String getF7() {
return f7;
}
@NotNullable
public void setF7(String f7) {
this.f7 = f7;
}
@Override
public boolean equals(Object o) {
if (! (o instanceof ModifiersFieldsClassNotNullable)) {
return false;
}
ModifiersFieldsClassNotNullable that = (ModifiersFieldsClassNotNullable) o;
if (f0 != that.f0) {
return false;
}
if (f1 != that.f1) {
return false;
}
if (f2 != that.f2) {
return false;
}
if (f3 != that.f3) {
return false;
}
if (f4 == null) {
if (that.f4 != null) {
return false;
}
}
if (that.f4 != null && ! f4.equals(that.f4)) {
return false;
}
if (f5 == null) {
if (that.f5 != null) {
return false;
}
}
if (that.f5 != null && ! f5.equals(that.f5)) {
return false;
}
if (f6 == null) {
if (that.f6 != null) {
return false;
}
}
if (that.f6 != null && ! f6.equals(that.f6)) {
return false;
}
if (f7 == null) {
if (that.f7 != null) {
return false;
}
}
if (that.f7 != null && ! f7.equals(that.f7)) {
return false;
}
return true;
}
}