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
|
|
7
|
|
8 @Ignore @Message @Beans
|
|
9 public class PrimitiveTypeFieldsClass {
|
|
10 public byte f0;
|
|
11
|
|
12 public short f1;
|
|
13
|
|
14 public int f2;
|
|
15
|
|
16 public long f3;
|
|
17
|
|
18 public float f4;
|
|
19
|
|
20 public double f5;
|
|
21
|
|
22 public boolean f6;
|
|
23
|
|
24 public PrimitiveTypeFieldsClass() {}
|
|
25
|
|
26 public byte getF0() {
|
|
27 return f0;
|
|
28 }
|
|
29
|
|
30 public void setF0(byte f0) {
|
|
31 this.f0 = f0;
|
|
32 }
|
|
33
|
|
34 public short getF1() {
|
|
35 return f1;
|
|
36 }
|
|
37
|
|
38 public void setF1(short f1) {
|
|
39 this.f1 = f1;
|
|
40 }
|
|
41
|
|
42 public int getF2() {
|
|
43 return f2;
|
|
44 }
|
|
45
|
|
46 public void setF2(int f2) {
|
|
47 this.f2 = f2;
|
|
48 }
|
|
49
|
|
50 public long getF3() {
|
|
51 return f3;
|
|
52 }
|
|
53
|
|
54 public void setF3(long f3) {
|
|
55 this.f3 = f3;
|
|
56 }
|
|
57
|
|
58 public float getF4() {
|
|
59 return f4;
|
|
60 }
|
|
61
|
|
62 public void setF4(float f4) {
|
|
63 this.f4 = f4;
|
|
64 }
|
|
65
|
|
66 public double getF5() {
|
|
67 return f5;
|
|
68 }
|
|
69
|
|
70 public void setF5(double f5) {
|
|
71 this.f5 = f5;
|
|
72 }
|
|
73
|
|
74 public boolean isF6() {
|
|
75 return f6;
|
|
76 }
|
|
77
|
|
78 public void setF6(boolean f6) {
|
|
79 this.f6 = f6;
|
|
80 }
|
|
81
|
|
82 @Override
|
|
83 public boolean equals(Object o) {
|
|
84 if (! (o instanceof PrimitiveTypeFieldsClass)) {
|
|
85 return false;
|
|
86 }
|
|
87 PrimitiveTypeFieldsClass that = (PrimitiveTypeFieldsClass) o;
|
|
88 if (f0 != that.f0) {
|
|
89 return false;
|
|
90 }
|
|
91 if (f1 != that.f1) {
|
|
92 return false;
|
|
93 }
|
|
94 if (f2 != that.f2) {
|
|
95 return false;
|
|
96 }
|
|
97 if (f3 != that.f3) {
|
|
98 return false;
|
|
99 }
|
|
100 if (f4 != that.f4) {
|
|
101 return false;
|
|
102 }
|
|
103 if (f5 != that.f5) {
|
|
104 return false;
|
|
105 }
|
|
106 if (f6 != that.f6) {
|
|
107 return false;
|
|
108 }
|
|
109 return true;
|
|
110 }
|
|
111 }
|