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