94707082ddd5b0ae8653e7307143b7c1d0374f76
[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      * {@inheritDoc}.
284      */
285     @Override
286     public int hashCode() {
287         final int prime = HASH_PRIME_1;
288         int result = 1;
289         result = prime * result + ((testGlobalContextItem000 == null) ? 0 : testGlobalContextItem000.hashCode());
290         result = prime * result + ((testGlobalContextItem001 == null) ? 0 : testGlobalContextItem001.hashCode());
291         result = prime * result + ((testGlobalContextItem002 == null) ? 0 : testGlobalContextItem002.hashCode());
292         result = prime * result + ((testGlobalContextItem003 == null) ? 0 : testGlobalContextItem003.hashCode());
293         result = prime * result + ((testGlobalContextItem004 == null) ? 0 : testGlobalContextItem004.hashCode());
294         result = prime * result + ((testGlobalContextItem005 == null) ? 0 : testGlobalContextItem005.hashCode());
295         result = prime * result + ((testGlobalContextItem006 == null) ? 0 : testGlobalContextItem006.hashCode());
296         result = prime * result + ((testGlobalContextItem007 == null) ? 0 : testGlobalContextItem007.hashCode());
297         result = prime * result + ((testGlobalContextItem008 == null) ? 0 : testGlobalContextItem008.hashCode());
298         result = prime * result + ((testGlobalContextItem009 == null) ? 0 : testGlobalContextItem009.hashCode());
299         result = prime * result + ((testGlobalContextItem00A == null) ? 0 : testGlobalContextItem00A.hashCode());
300         result = prime * result + ((testGlobalContextItem00B == null) ? 0 : testGlobalContextItem00B.hashCode());
301         result = prime * result + ((testGlobalContextItem00C == null) ? 0 : testGlobalContextItem00C.hashCode());
302         return result;
303     }
304
305     /**
306      * {@inheritDoc}.
307      */
308     @Override
309     public boolean equals(final Object obj) {
310         if (this == obj) {
311             return true;
312         }
313         if (obj == null) {
314             return false;
315         }
316         if (getClass() != obj.getClass()) {
317             return false;
318         }
319         final TestGlobalContextItem other = (TestGlobalContextItem) obj;
320         if (testGlobalContextItem000 == null) {
321             if (other.testGlobalContextItem000 != null) {
322                 return false;
323             }
324         } else if (!testGlobalContextItem000.equals(other.testGlobalContextItem000)) {
325             return false;
326         }
327         if (testGlobalContextItem001 == null) {
328             if (other.testGlobalContextItem001 != null) {
329                 return false;
330             }
331         } else if (!testGlobalContextItem001.equals(other.testGlobalContextItem001)) {
332             return false;
333         }
334         if (testGlobalContextItem002 == null) {
335             if (other.testGlobalContextItem002 != null) {
336                 return false;
337             }
338         } else if (!testGlobalContextItem002.equals(other.testGlobalContextItem002)) {
339             return false;
340         }
341         if (testGlobalContextItem003 == null) {
342             if (other.testGlobalContextItem003 != null) {
343                 return false;
344             }
345         } else if (!testGlobalContextItem003.equals(other.testGlobalContextItem003)) {
346             return false;
347         }
348         if (testGlobalContextItem004 == null) {
349             if (other.testGlobalContextItem004 != null) {
350                 return false;
351             }
352         } else if (!testGlobalContextItem004.equals(other.testGlobalContextItem004)) {
353             return false;
354         }
355         if (testGlobalContextItem005 == null) {
356             if (other.testGlobalContextItem005 != null) {
357                 return false;
358             }
359         } else if (!testGlobalContextItem005.equals(other.testGlobalContextItem005)) {
360             return false;
361         }
362         if (testGlobalContextItem006 == null) {
363             if (other.testGlobalContextItem006 != null) {
364                 return false;
365             }
366         } else if (!testGlobalContextItem006.equals(other.testGlobalContextItem006)) {
367             return false;
368         }
369         if (testGlobalContextItem007 == null) {
370             if (other.testGlobalContextItem007 != null) {
371                 return false;
372             }
373         } else if (!testGlobalContextItem007.equals(other.testGlobalContextItem007)) {
374             return false;
375         }
376         if (testGlobalContextItem008 == null) {
377             if (other.testGlobalContextItem008 != null) {
378                 return false;
379             }
380         } else if (!testGlobalContextItem008.equals(other.testGlobalContextItem008)) {
381             return false;
382         }
383         if (testGlobalContextItem009 == null) {
384             if (other.testGlobalContextItem009 != null) {
385                 return false;
386             }
387         } else if (!testGlobalContextItem009.equals(other.testGlobalContextItem009)) {
388             return false;
389         }
390         if (testGlobalContextItem00A == null) {
391             if (other.testGlobalContextItem00A != null) {
392                 return false;
393             }
394         } else if (!testGlobalContextItem00A.equals(other.testGlobalContextItem00A)) {
395             return false;
396         }
397         if (testGlobalContextItem00B == null) {
398             if (other.testGlobalContextItem00B != null) {
399                 return false;
400             }
401         } else if (!testGlobalContextItem00B.equals(other.testGlobalContextItem00B)) {
402             return false;
403         }
404         if (testGlobalContextItem00C == null) {
405             if (other.testGlobalContextItem00C != null) {
406                 return false;
407             }
408         } else if (!testGlobalContextItem00C.equals(other.testGlobalContextItem00C)) {
409             return false;
410         }
411         return true;
412     }
413
414     /**
415      * {@inheritDoc}.
416      */
417     @Override
418     public String toString() {
419         return "TestGlobalContextItem [testGlobalContextItem000=" + testGlobalContextItem000
420                 + ", testGlobalContextItem001=" + testGlobalContextItem001 + ", testGlobalContextItem002="
421                 + testGlobalContextItem002 + ", testGlobalContextItem003=" + testGlobalContextItem003
422                 + ", testGlobalContextItem004=" + testGlobalContextItem004 + ", testGlobalContextItem005="
423                 + testGlobalContextItem005 + ", testGlobalContextItem006=" + testGlobalContextItem006
424                 + ", testGlobalContextItem007=" + testGlobalContextItem007 + ", testGlobalContextItem008="
425                 + testGlobalContextItem008 + ", testGlobalContextItem009=" + testGlobalContextItem009
426                 + ", testGlobalContextItem00A=" + testGlobalContextItem00A + ", testGlobalContextItem00B="
427                 + testGlobalContextItem00B + ", testGlobalContextItem00C=" + testGlobalContextItem00C + "]";
428     }
429 }