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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 * SPDX-License-Identifier: Apache-2.0
19 * ============LICENSE_END=========================================================
22 package org.onap.policy.apex.context.test.concepts;
24 import java.io.Serializable;
27 * The Class TestGlobalContextItem.
29 public class TestGlobalContextItem implements Serializable {
30 private static final long serialVersionUID = 3348445332683174361L;
32 private static final int HASH_PRIME_1 = 31;
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;
49 * Gets the test global context item 000.
51 * @return the test global context item 000
53 public TestContextBooleanItem getTestGlobalContextItem000() {
54 return testGlobalContextItem000;
58 * Sets the test global context item 000.
60 * @param testGlobalContextItem000 the test global context item 000
62 public void setTestGlobalContextItem000(final TestContextBooleanItem testGlobalContextItem000) {
63 this.testGlobalContextItem000 = testGlobalContextItem000;
67 * Gets the test global context item 001.
69 * @return the test global context item 001
71 public TestContextByteItem getTestGlobalContextItem001() {
72 return testGlobalContextItem001;
76 * Sets the test global context item 001.
78 * @param testGlobalContextItem001 the test global context item 001
80 public void setTestGlobalContextItem001(final TestContextByteItem testGlobalContextItem001) {
81 this.testGlobalContextItem001 = testGlobalContextItem001;
85 * Gets the test global context item 002.
87 * @return the test global context item 002
89 public TestContextIntItem getTestGlobalContextItem002() {
90 return testGlobalContextItem002;
94 * Sets the test global context item 002.
96 * @param testGlobalContextItem002 the test global context item 002
98 public void setTestGlobalContextItem002(final TestContextIntItem testGlobalContextItem002) {
99 this.testGlobalContextItem002 = testGlobalContextItem002;
103 * Gets the test global context item 003.
105 * @return the test global context item 003
107 public TestContextLongItem getTestGlobalContextItem003() {
108 return testGlobalContextItem003;
112 * Sets the test global context item 003.
114 * @param testGlobalContextItem003 the test global context item 003
116 public void setTestGlobalContextItem003(final TestContextLongItem testGlobalContextItem003) {
117 this.testGlobalContextItem003 = testGlobalContextItem003;
121 * Gets the test global context item 004.
123 * @return the test global context item 004
125 public TestContextFloatItem getTestGlobalContextItem004() {
126 return testGlobalContextItem004;
130 * Sets the test global context item 004.
132 * @param testGlobalContextItem004 the test global context item 004
134 public void setTestGlobalContextItem004(final TestContextFloatItem testGlobalContextItem004) {
135 this.testGlobalContextItem004 = testGlobalContextItem004;
139 * Gets the test global context item 005.
141 * @return the test global context item 005
143 public TestContextDoubleItem getTestGlobalContextItem005() {
144 return testGlobalContextItem005;
148 * Sets the test global context item 005.
150 * @param testGlobalContextItem005 the test global context item 005
152 public void setTestGlobalContextItem005(final TestContextDoubleItem testGlobalContextItem005) {
153 this.testGlobalContextItem005 = testGlobalContextItem005;
157 * Gets the test global context item 006.
159 * @return the test global context item 006
161 public TestContextStringItem getTestGlobalContextItem006() {
162 return testGlobalContextItem006;
166 * Sets the test global context item 006.
168 * @param testGlobalContextItem006 the test global context item 006
170 public void setTestGlobalContextItem006(final TestContextStringItem testGlobalContextItem006) {
171 this.testGlobalContextItem006 = testGlobalContextItem006;
175 * Gets the test global context item 007.
177 * @return the test global context item 007
179 public TestContextLongObjectItem getTestGlobalContextItem007() {
180 return testGlobalContextItem007;
184 * Sets the test global context item 007.
186 * @param testGlobalContextItem007 the test global context item 007
188 public void setTestGlobalContextItem007(final TestContextLongObjectItem testGlobalContextItem007) {
189 this.testGlobalContextItem007 = testGlobalContextItem007;
193 * Gets the test global context item 008.
195 * @return the test global context item 008
197 public TestContextDateItem getTestGlobalContextItem008() {
198 return testGlobalContextItem008;
202 * Sets the test global context item 008.
204 * @param testGlobalContextItem008 the test global context item 008
206 public void setTestGlobalContextItem008(final TestContextDateItem testGlobalContextItem008) {
207 this.testGlobalContextItem008 = testGlobalContextItem008;
211 * Gets the test global context item 009.
213 * @return the test global context item 009
215 public TestContextDateTzItem getTestGlobalContextItem009() {
216 return testGlobalContextItem009;
220 * Sets the test global context item 009.
222 * @param testGlobalContextItem009 the test global context item 009
224 public void setTestGlobalContextItem009(final TestContextDateTzItem testGlobalContextItem009) {
225 this.testGlobalContextItem009 = testGlobalContextItem009;
229 * Gets the test global context item 00 A.
231 * @return the test global context item 00 A
233 public TestContextDateLocaleItem getTestGlobalContextItem00A() {
234 return testGlobalContextItem00A;
238 * Sets the test global context item 00 A.
240 * @param testGlobalContextItem00A the test global context item 00 A
242 public void setTestGlobalContextItem00A(final TestContextDateLocaleItem testGlobalContextItem00A) {
243 this.testGlobalContextItem00A = testGlobalContextItem00A;
247 * Gets the test global context item 00 B.
249 * @return the test global context item 00 B
251 public TestContextTreeSetItem getTestGlobalContextItem00B() {
252 return testGlobalContextItem00B;
256 * Sets the test global context item 00 B.
258 * @param testGlobalContextItem00B the test global context item 00 B
260 public void setTestGlobalContextItem00B(final TestContextTreeSetItem testGlobalContextItem00B) {
261 this.testGlobalContextItem00B = testGlobalContextItem00B;
265 * Gets the test global context item 00 C.
267 * @return the test global context item 00 C
269 public TestContextTreeMapItem getTestGlobalContextItem00C() {
270 return testGlobalContextItem00C;
274 * Sets the test global context item 00 C.
276 * @param testGlobalContextItem00C the test global context item 00 C
278 public void setTestGlobalContextItem00C(final TestContextTreeMapItem testGlobalContextItem00C) {
279 this.testGlobalContextItem00C = testGlobalContextItem00C;
285 * @see java.lang.Object#hashCode()
288 public int hashCode() {
289 final int prime = HASH_PRIME_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());
310 * @see java.lang.Object#equals(java.lang.Object)
313 public boolean equals(final Object obj) {
320 if (getClass() != obj.getClass()) {
323 final TestGlobalContextItem other = (TestGlobalContextItem) obj;
324 if (testGlobalContextItem000 == null) {
325 if (other.testGlobalContextItem000 != null) {
328 } else if (!testGlobalContextItem000.equals(other.testGlobalContextItem000)) {
331 if (testGlobalContextItem001 == null) {
332 if (other.testGlobalContextItem001 != null) {
335 } else if (!testGlobalContextItem001.equals(other.testGlobalContextItem001)) {
338 if (testGlobalContextItem002 == null) {
339 if (other.testGlobalContextItem002 != null) {
342 } else if (!testGlobalContextItem002.equals(other.testGlobalContextItem002)) {
345 if (testGlobalContextItem003 == null) {
346 if (other.testGlobalContextItem003 != null) {
349 } else if (!testGlobalContextItem003.equals(other.testGlobalContextItem003)) {
352 if (testGlobalContextItem004 == null) {
353 if (other.testGlobalContextItem004 != null) {
356 } else if (!testGlobalContextItem004.equals(other.testGlobalContextItem004)) {
359 if (testGlobalContextItem005 == null) {
360 if (other.testGlobalContextItem005 != null) {
363 } else if (!testGlobalContextItem005.equals(other.testGlobalContextItem005)) {
366 if (testGlobalContextItem006 == null) {
367 if (other.testGlobalContextItem006 != null) {
370 } else if (!testGlobalContextItem006.equals(other.testGlobalContextItem006)) {
373 if (testGlobalContextItem007 == null) {
374 if (other.testGlobalContextItem007 != null) {
377 } else if (!testGlobalContextItem007.equals(other.testGlobalContextItem007)) {
380 if (testGlobalContextItem008 == null) {
381 if (other.testGlobalContextItem008 != null) {
384 } else if (!testGlobalContextItem008.equals(other.testGlobalContextItem008)) {
387 if (testGlobalContextItem009 == null) {
388 if (other.testGlobalContextItem009 != null) {
391 } else if (!testGlobalContextItem009.equals(other.testGlobalContextItem009)) {
394 if (testGlobalContextItem00A == null) {
395 if (other.testGlobalContextItem00A != null) {
398 } else if (!testGlobalContextItem00A.equals(other.testGlobalContextItem00A)) {
401 if (testGlobalContextItem00B == null) {
402 if (other.testGlobalContextItem00B != null) {
405 } else if (!testGlobalContextItem00B.equals(other.testGlobalContextItem00B)) {
408 if (testGlobalContextItem00C == null) {
409 if (other.testGlobalContextItem00C != null) {
412 } else if (!testGlobalContextItem00C.equals(other.testGlobalContextItem00C)) {
421 * @see java.lang.Object#toString()
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 + "]";