0
|
1 package org.msgpack.testclasses;
|
|
2
|
|
3 import org.junit.Ignore;
|
|
4 import org.msgpack.annotation.*;
|
|
5
|
|
6 @Ignore @MessagePackBeans
|
|
7 public class IndexedFieldsBeanClassNotNullable {
|
|
8
|
|
9 public String f5;
|
|
10
|
|
11 public String f4;
|
|
12
|
|
13 public String f3;
|
|
14
|
|
15 public String f2;
|
|
16
|
|
17 public String f1;
|
|
18
|
|
19 @Index(0) @NotNullable
|
|
20 public String getF5() {
|
|
21 return f5;
|
|
22 }
|
|
23
|
|
24 @NotNullable
|
|
25 public void setF5(String f5) {
|
|
26 this.f5 = f5;
|
|
27 }
|
|
28
|
|
29 @Index(4) @NotNullable
|
|
30 public String getF4() {
|
|
31 return f4;
|
|
32 }
|
|
33
|
|
34 @NotNullable
|
|
35 public void setF4(String f4) {
|
|
36 this.f4 = f4;
|
|
37 }
|
|
38
|
|
39 @NotNullable
|
|
40 public String getF3() {
|
|
41 return f3;
|
|
42 }
|
|
43
|
|
44 @Index(1) @NotNullable
|
|
45 public void setF3(String f3) {
|
|
46 this.f3 = f3;
|
|
47 }
|
|
48
|
|
49 @NotNullable
|
|
50 public String getF2() {
|
|
51 return f2;
|
|
52 }
|
|
53
|
|
54 @Index(3) @NotNullable
|
|
55 public void setF2(String f2) {
|
|
56 this.f2 = f2;
|
|
57 }
|
|
58
|
|
59 @Index(2) @NotNullable
|
|
60 public String getF1() {
|
|
61 return f1;
|
|
62 }
|
|
63
|
|
64 @NotNullable
|
|
65 public void setF1(String f1) {
|
|
66 this.f1 = f1;
|
|
67 }
|
|
68
|
|
69 @Override
|
|
70 public boolean equals(Object o) {
|
|
71 if (! (o instanceof IndexedFieldsBeanClassNotNullable)) {
|
|
72 return false;
|
|
73 }
|
|
74 IndexedFieldsBeanClassNotNullable that = (IndexedFieldsBeanClassNotNullable) o;
|
|
75 if (f5 == null) {
|
|
76 if (that.f5 != null) {
|
|
77 return false;
|
|
78 }
|
|
79 }
|
|
80 if (that.f5 != null && ! f5.equals(that.f5)) {
|
|
81 return false;
|
|
82 }
|
|
83 if (f4 == null) {
|
|
84 if (that.f4 != null) {
|
|
85 return false;
|
|
86 }
|
|
87 }
|
|
88 if (that.f4 != null && ! f4.equals(that.f4)) {
|
|
89 return false;
|
|
90 }
|
|
91 if (f3 == null) {
|
|
92 if (that.f3 != null) {
|
|
93 return false;
|
|
94 }
|
|
95 }
|
|
96 if (that.f3 != null && ! f3.equals(that.f3)) {
|
|
97 return false;
|
|
98 }
|
|
99 if (f2 == null) {
|
|
100 if (that.f2 != null) {
|
|
101 return false;
|
|
102 }
|
|
103 }
|
|
104 if (that.f2 != null && ! f2.equals(that.f2)) {
|
|
105 return false;
|
|
106 }
|
|
107 if (f1 == null) {
|
|
108 if (that.f1 != null) {
|
|
109 return false;
|
|
110 }
|
|
111 }
|
|
112 if (that.f1 != null && ! f1.equals(that.f1)) {
|
|
113 return false;
|
|
114 }
|
|
115
|
|
116 return true;
|
|
117 }
|
|
118 }
|