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