forked from msgpack/msgpack-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFinalClass.java
More file actions
54 lines (44 loc) · 866 Bytes
/
FinalClass.java
File metadata and controls
54 lines (44 loc) · 866 Bytes
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
package org.msgpack.testclasses;
import org.junit.Ignore;
import org.msgpack.annotation.Beans;
import org.msgpack.annotation.Message;
@Ignore @Message @Beans
public final class FinalClass {
public int f0;
public String f1;
public FinalClass() {
}
public int getF0() {
return f0;
}
public void setF0(int f0) {
this.f0 = f0;
}
public String getF1() {
return f1;
}
public void setF1(String f1) {
this.f1 = f1;
}
@Override
public boolean equals(Object o) {
if (! (o instanceof FinalClass)) {
return false;
}
FinalClass that = (FinalClass) o;
if (f0 != that.f0) {
return false;
}
if (f1 == null) {
if (that.f1 != null) {
return false;
}
}
if (that.f1 != null) {
if (! f1.equals(that.f1)) {
return false;
}
}
return true;
}
}