9953a1a95b94233d1ff8a3ad5745009faee6e685
[policy/apex-pdp.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.apex.context.test.concepts;
22
23 import java.io.Serializable;
24
25 /**
26  * The Class TestGlobalContextItem.
27  */
28 public class TestGlobalContextItem implements Serializable {
29     private static final long serialVersionUID = 3348445332683174361L;
30
31     private static final int HASH_PRIME_1 = 31;
32
33     private TestContextBooleanItem testGlobalContextItem000;
34     private TestContextByteItem testGlobalContextItem001;
35     private TestContextIntItem testGlobalContextItem002;
36     private TestContextLongItem testGlobalContextItem003;
37     private TestContextFloatItem testGlobalContextItem004;
38     private TestContextDoubleItem testGlobalContextItem005;
39     private TestContextStringItem testGlobalContextItem006;
40     private TestContextLongObjectItem testGlobalContextItem007;
41     private TestContextDateItem testGlobalContextItem008;
42     private TestContextDateTzItem testGlobalContextItem009;
43     private TestContextDateLocaleItem testGlobalContextItem00A;
44     private TestContextTreeSetItem testGlobalContextItem00B;
45     private TestContextTreeMapItem testGlobalContextItem00C;
46
47     /**
48      * Gets the test global context item 000.
49      *
50      * @return the test global context item 000
51      */
52     public TestContextBooleanItem getTestGlobalContextItem000() {
53         return testGlobalContextItem000;
54     }
55
56     /**
57      * Sets the test global context item 000.
58      *
59      * @param testGlobalContextItem000 the test global context item 000
60      */
61     public void setTestGlobalContextItem000(final TestContextBooleanItem testGlobalContextItem000) {
62         this.testGlobalContextItem000 = testGlobalContextItem000;
63     }
64
65     /**
66      * Gets the test global context item 001.
67      *
68      * @return the test global context item 001
69      */
70     public TestContextByteItem getTestGlobalContextItem001() {
71         return testGlobalContextItem001;
72     }
73
74     /**
75      * Sets the test global context item 001.
76      *
77      * @param testGlobalContextItem001 the test global context item 001
78      */
79     public void setTestGlobalContextItem001(final TestContextByteItem testGlobalContextItem001) {
80         this.testGlobalContextItem001 = testGlobalContextItem001;
81     }
82
83     /**
84      * Gets the test global context item 002.
85      *
86      * @return the test global context item 002
87      */
88     public TestContextIntItem getTestGlobalContextItem002() {
89         return testGlobalContextItem002;
90     }
91
92     /**
93      * Sets the test global context item 002.
94      *
95      * @param testGlobalContextItem002 the test global context item 002
96      */
97     public void setTestGlobalContextItem002(final TestContextIntItem testGlobalContextItem002) {
98         this.testGlobalContextItem002 = testGlobalContextItem002;
99     }
100
101     /**
102      * Gets the test global context item 003.
103      *
104      * @return the test global context item 003
105      */
106     public TestContextLongItem getTestGlobalContextItem003() {
107         return testGlobalContextItem003;
108     }
109
110     /**
111      * Sets the test global context item 003.
112      *
113      * @param testGlobalContextItem003 the test global context item 003
114      */
115     public void setTestGlobalContextItem003(final TestContextLongItem testGlobalContextItem003) {
116         this.testGlobalContextItem003 = testGlobalContextItem003;
117     }
118
119     /**
120      * Gets the test global context item 004.
121      *
122      * @return the test global context item 004
123      */
124     public TestContextFloatItem getTestGlobalContextItem004() {
125         return testGlobalContextItem004;
126     }
127
128     /**
129      * Sets the test global context item 004.
130      *
131      * @param testGlobalContextItem004 the test global context item 004
132      */
133     public void setTestGlobalContextItem004(final TestContextFloatItem testGlobalContextItem004) {
134         this.testGlobalContextItem004 = testGlobalContextItem004;
135     }
136
137     /**
138      * Gets the test global context item 005.
139      *
140      * @return the test global context item 005
141      */
142     public TestContextDoubleItem getTestGlobalContextItem005() {
143         return testGlobalContextItem005;
144     }
145
146     /**
147      * Sets the test global context item 005.
148      *
149      * @param testGlobalContextItem005 the test global context item 005
150      */
151     public void setTestGlobalContextItem005(final TestContextDoubleItem testGlobalContextItem005) {
152         this.testGlobalContextItem005 = testGlobalContextItem005;
153     }
154
155     /**
156      * Gets the test global context item 006.
157      *
158      * @return the test global context item 006
159      */
160     public TestContextStringItem getTestGlobalContextItem006() {
161         return testGlobalContextItem006;
162     }
163
164     /**
165      * Sets the test global context item 006.
166      *
167      * @param testGlobalContextItem006 the test global context item 006
168      */
169     public void setTestGlobalContextItem006(final TestContextStringItem testGlobalContextItem006) {
170         this.testGlobalContextItem006 = testGlobalContextItem006;
171     }
172
173     /**
174      * Gets the test global context item 007.
175      *
176      * @return the test global context item 007
177      */
178     public TestContextLongObjectItem getTestGlobalContextItem007() {
179         return testGlobalContextItem007;
180     }
181
182     /**
183      * Sets the test global context item 007.
184      *
185      * @param testGlobalContextItem007 the test global context item 007
186      */
187     public void setTestGlobalContextItem007(final TestContextLongObjectItem testGlobalContextItem007) {
188         this.testGlobalContextItem007 = testGlobalContextItem007;
189     }
190
191     /**
192      * Gets the test global context item 008.
193      *
194      * @return the test global context item 008
195      */
196     public TestContextDateItem getTestGlobalContextItem008() {
197         return testGlobalContextItem008;
198     }
199
200     /**
201      * Sets the test global context item 008.
202      *
203      * @param testGlobalContextItem008 the test global context item 008
204      */
205     public void setTestGlobalContextItem008(final TestContextDateItem testGlobalContextItem008) {
206         this.testGlobalContextItem008 = testGlobalContextItem008;
207     }
208
209     /**
210      * Gets the test global context item 009.
211      *
212      * @return the test global context item 009
213      */
214     public TestContextDateTzItem getTestGlobalContextItem009() {
215         return testGlobalContextItem009;
216     }
217
218     /**
219      * Sets the test global context item 009.
220      *
221      * @param testGlobalContextItem009 the test global context item 009
222      */
223     public void setTestGlobalContextItem009(final TestContextDateTzItem testGlobalContextItem009) {
224         this.testGlobalContextItem009 = testGlobalContextItem009;
225     }
226
227     /**
228      * Gets the test global context item 00 A.
229      *
230      * @return the test global context item 00 A
231      */
232     public TestContextDateLocaleItem getTestGlobalContextItem00A() {
233         return testGlobalContextItem00A;
234     }
235
236     /**
237      * Sets the test global context item 00 A.
238      *
239      * @param testGlobalContextItem00A the test global context item 00 A
240      */
241     public void setTestGlobalContextItem00A(final TestContextDateLocaleItem testGlobalContextItem00A) {
242         this.testGlobalContextItem00A = testGlobalContextItem00A;
243     }
244
245     /**
246      * Gets the test global context item 00 B.
247      *
248      * @return the test global context item 00 B
249      */
250     public TestContextTreeSetItem getTestGlobalContextItem00B() {
251         return testGlobalContextItem00B;
252     }
253
254     /**
255      * Sets the test global context item 00 B.
256      *
257      * @param testGlobalContextItem00B the test global context item 00 B
258      */
259     public void setTestGlobalContextItem00B(final TestContextTreeSetItem testGlobalContextItem00B) {
260         this.testGlobalContextItem00B = testGlobalContextItem00B;
261     }
262
263     /**
264      * Gets the test global context item 00 C.
265      *
266      * @return the test global context item 00 C
267      */
268     public TestContextTreeMapItem getTestGlobalContextItem00C() {
269         return testGlobalContextItem00C;
270     }
271
272     /**
273      * Sets the test global context item 00 C.
274      *
275      * @param testGlobalContextItem00C the test global context item 00 C
276      */
277     public void setTestGlobalContextItem00C(final TestContextTreeMapItem testGlobalContextItem00C) {
278         this.testGlobalContextItem00C = testGlobalContextItem00C;
279     }
280
281     /*
282      * (non-Javadoc)
283      *
284      * @see java.lang.Object#hashCode()
285      */
286     @Override
287     public int hashCode() {
288         final int prime = HASH_PRIME_1;
289         int result = 1;
290         result = prime * result + ((testGlobalContextItem000 == null) ? 0 : testGlobalContextItem000.hashCode());
291         result = prime * result + ((testGlobalContextItem001 == null) ? 0 : testGlobalContextItem001.hashCode());
292         result = prime * result + ((testGlobalContextItem002 == null) ? 0 : testGlobalContextItem002.hashCode());
293         result = prime * result + ((testGlobalContextItem003 == null) ? 0 : testGlobalContextItem003.hashCode());
294         result = prime * result + ((testGlobalContextItem004 == null) ? 0 : testGlobalContextItem004.hashCode());
295         result = prime * result + ((testGlobalContextItem005 == null) ? 0 : testGlobalContextItem005.hashCode());
296         result = prime * result + ((testGlobalContextItem006 == null) ? 0 : testGlobalContextItem006.hashCode());
297         result = prime * result + ((testGlobalContextItem007 == null) ? 0 : testGlobalContextItem007.hashCode());
298         result = prime * result + ((testGlobalContextItem008 == null) ? 0 : testGlobalContextItem008.hashCode());
299         result = prime * result + ((testGlobalContextItem009 == null) ? 0 : testGlobalContextItem009.hashCode());
300         result = prime * result + ((testGlobalContextItem00A == null) ? 0 : testGlobalContextItem00A.hashCode());
301         result = prime * result + ((testGlobalContextItem00B == null) ? 0 : testGlobalContextItem00B.hashCode());
302         result = prime * result + ((testGlobalContextItem00C == null) ? 0 : testGlobalContextItem00C.hashCode());
303         return result;
304     }
305
306     /*
307      * (non-Javadoc)
308      *
309      * @see java.lang.Object#equals(java.lang.Object)
310      */
311     @Override
312     public boolean equals(final Object obj) {
313         if (this == obj) {
314             return true;
315         }
316         if (obj == null) {
317             return false;
318         }
319         if (getClass() != obj.getClass()) {
320             return false;
321         }
322         final TestGlobalContextItem other = (TestGlobalContextItem) obj;
323         if (testGlobalContextItem000 == null) {
324             if (other.testGlobalContextItem000 != null) {
325                 return false;
326             }
327         } else if (!testGlobalContextItem000.equals(other.testGlobalContextItem000)) {
328             return false;
329         }
330         if (testGlobalContextItem001 == null) {
331             if (other.testGlobalContextItem001 != null) {
332                 return false;
333             }
334         } else if (!testGlobalContextItem001.equals(other.testGlobalContextItem001)) {
335             return false;
336         }
337         if (testGlobalContextItem002 == null) {
338             if (other.testGlobalContextItem002 != null) {
339                 return false;
340             }
341         } else if (!testGlobalContextItem002.equals(other.testGlobalContextItem002)) {
342             return false;
343         }
344         if (testGlobalContextItem003 == null) {
345             if (other.testGlobalContextItem003 != null) {
346                 return false;
347             }
348         } else if (!testGlobalContextItem003.equals(other.testGlobalContextItem003)) {
349             return false;
350         }
351         if (testGlobalContextItem004 == null) {
352             if (other.testGlobalContextItem004 != null) {
353                 return false;
354             }
355         } else if (!testGlobalContextItem004.equals(other.testGlobalContextItem004)) {
356             return false;
357         }
358         if (testGlobalContextItem005 == null) {
359             if (other.testGlobalContextItem005 != null) {
360                 return false;
361             }
362         } else if (!testGlobalContextItem005.equals(other.testGlobalContextItem005)) {
363             return false;
364         }
365         if (testGlobalContextItem006 == null) {
366             if (other.testGlobalContextItem006 != null) {
367                 return false;
368             }
369         } else if (!testGlobalContextItem006.equals(other.testGlobalContextItem006)) {
370             return false;
371         }
372         if (testGlobalContextItem007 == null) {
373             if (other.testGlobalContextItem007 != null) {
374                 return false;
375             }
376         } else if (!testGlobalContextItem007.equals(other.testGlobalContextItem007)) {
377             return false;
378         }
379         if (testGlobalContextItem008 == null) {
380             if (other.testGlobalContextItem008 != null) {
381                 return false;
382             }
383         } else if (!testGlobalContextItem008.equals(other.testGlobalContextItem008)) {
384             return false;
385         }
386         if (testGlobalContextItem009 == null) {
387             if (other.testGlobalContextItem009 != null) {
388                 return false;
389             }
390         } else if (!testGlobalContextItem009.equals(other.testGlobalContextItem009)) {
391             return false;
392         }
393         if (testGlobalContextItem00A == null) {
394             if (other.testGlobalContextItem00A != null) {
395                 return false;
396             }
397         } else if (!testGlobalContextItem00A.equals(other.testGlobalContextItem00A)) {
398             return false;
399         }
400         if (testGlobalContextItem00B == null) {
401             if (other.testGlobalContextItem00B != null) {
402                 return false;
403             }
404         } else if (!testGlobalContextItem00B.equals(other.testGlobalContextItem00B)) {
405             return false;
406         }
407         if (testGlobalContextItem00C == null) {
408             if (other.testGlobalContextItem00C != null) {
409                 return false;
410             }
411         } else if (!testGlobalContextItem00C.equals(other.testGlobalContextItem00C)) {
412             return false;
413         }
414         return true;
415     }
416
417     /*
418      * (non-Javadoc)
419      *
420      * @see java.lang.Object#toString()
421      */
422     @Override
423     public String toString() {
424         return "TestGlobalContextItem [testGlobalContextItem000=" + testGlobalContextItem000
425                 + ", testGlobalContextItem001=" + testGlobalContextItem001 + ", testGlobalContextItem002="
426                 + testGlobalContextItem002 + ", testGlobalContextItem003=" + testGlobalContextItem003
427                 + ", testGlobalContextItem004=" + testGlobalContextItem004 + ", testGlobalContextItem005="
428                 + testGlobalContextItem005 + ", testGlobalContextItem006=" + testGlobalContextItem006
429                 + ", testGlobalContextItem007=" + testGlobalContextItem007 + ", testGlobalContextItem008="
430                 + testGlobalContextItem008 + ", testGlobalContextItem009=" + testGlobalContextItem009
431                 + ", testGlobalContextItem00A=" + testGlobalContextItem00A + ", testGlobalContextItem00B="
432                 + testGlobalContextItem00B + ", testGlobalContextItem00C=" + testGlobalContextItem00C + "]";
433     }
434 }