forked from msgpack/msgpack-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndexedFieldsBeanClass.java
More file actions
114 lines (95 loc) · 2.2 KB
/
IndexedFieldsBeanClass.java
File metadata and controls
114 lines (95 loc) · 2.2 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
package org.msgpack.testclasses;
import org.junit.Ignore;
import org.msgpack.annotation.Index;
import org.msgpack.annotation.MessagePackBeans;
@Ignore @MessagePackBeans
public class IndexedFieldsBeanClass {
public String f5;
public String f4;
public String f3;
public String f2;
public String f1;
@Index(0)
public String getF5() {
return f5;
}
public void setF5(String f5) {
this.f5 = f5;
}
@Index(4)
public String getF4() {
return f4;
}
public void setF4(String f4) {
this.f4 = f4;
}
public String getF3() {
return f3;
}
@Index(1)
public void setF3(String f3) {
this.f3 = f3;
}
public String getF2() {
return f2;
}
@Index(3)
public void setF2(String f2) {
this.f2 = f2;
}
@Index(2)
public String getF1() {
return f1;
}
public void setF1(String f1) {
this.f1 = f1;
}
@Override
public boolean equals(Object o) {
if (! (o instanceof IndexedFieldsBeanClass)) {
return false;
}
IndexedFieldsBeanClass that = (IndexedFieldsBeanClass) o;
if (f5 == null) {
if (that.f5 != null) {
return false;
}
}
if (that.f5 != null && ! f5.equals(that.f5)) {
return false;
}
if (f4 == null) {
if (that.f4 != null) {
return false;
}
}
if (that.f4 != null && ! f4.equals(that.f4)) {
return false;
}
if (f3 == null) {
if (that.f3 != null) {
return false;
}
}
if (that.f3 != null && ! f3.equals(that.f3)) {
return false;
}
if (f2 == null) {
if (that.f2 != null) {
return false;
}
}
if (that.f2 != null && ! f2.equals(that.f2)) {
return false;
}
if (f1 == null) {
if (that.f1 != null) {
return false;
}
}
if (that.f1 != null && ! f1.equals(that.f1)) {
return false;
}
return true;
}
}