1
2
3
4
5
6
7
8
9
10
11 package org.mule.test.usecases.axis;
12
13
14
15
16
17
18 public class TradeStatus implements java.io.Serializable
19 {
20 private static final long serialVersionUID = 414517174955602939L;
21
22 private java.lang.String status;
23 private int tradeID;
24
25 public TradeStatus()
26 {
27 super();
28 }
29
30 public java.lang.String getStatus()
31 {
32 return status;
33 }
34
35 public void setStatus(java.lang.String status)
36 {
37 this.status = status;
38 }
39
40 public int getTradeID()
41 {
42 return tradeID;
43 }
44
45 public void setTradeID(int tradeID)
46 {
47 this.tradeID = tradeID;
48 }
49
50 private transient java.lang.ThreadLocal __history;
51
52 public boolean equals(java.lang.Object obj)
53 {
54 if (obj == null)
55 {
56 return false;
57 }
58 if (obj.getClass() != this.getClass())
59 {
60 return false;
61 }
62 TradeStatus other = (TradeStatus)obj;
63 boolean _equals;
64 _equals = true
65 && ((this.status == null && other.getStatus() == null) || (this.status != null && this.status.equals(other.getStatus())))
66 && this.tradeID == other.getTradeID();
67 if (!_equals)
68 {
69 return false;
70 }
71 if (__history == null)
72 {
73 synchronized (this)
74 {
75 if (__history == null)
76 {
77 __history = new java.lang.ThreadLocal();
78 }
79 }
80 }
81 TradeStatus history = (TradeStatus)__history.get();
82 if (history != null)
83 {
84 return (history == obj);
85 }
86 if (this == obj)
87 {
88 return true;
89 }
90 __history.set(obj);
91 __history.set(null);
92 return true;
93 }
94
95 private transient java.lang.ThreadLocal __hashHistory;
96
97 public int hashCode()
98 {
99 if (__hashHistory == null)
100 {
101 synchronized (this)
102 {
103 if (__hashHistory == null)
104 {
105 __hashHistory = new java.lang.ThreadLocal();
106 }
107 }
108 }
109 TradeStatus history = (TradeStatus)__hashHistory.get();
110 if (history != null)
111 {
112 return 0;
113 }
114 __hashHistory.set(this);
115 int _hashCode = 1;
116 if (getStatus() != null)
117 {
118 _hashCode += getStatus().hashCode();
119 }
120 _hashCode += getTradeID();
121 __hashHistory.set(null);
122 return _hashCode;
123 }
124
125 }