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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.apex.context.test.concepts;
23 import java.io.Serializable;
26 * The Class TestGlobalContextItem.
28 public class TestGlobalContextItem implements Serializable {
29 private static final long serialVersionUID = 3348445332683174361L;
31 private static final int HASH_PRIME_1 = 31;
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;
48 * Gets the test global context item 000.
50 * @return the test global context item 000
52 public TestContextBooleanItem getTestGlobalContextItem000() {
53 return testGlobalContextItem000;
57 * Sets the test global context item 000.
59 * @param testGlobalContextItem000 the test global context item 000
61 public void setTestGlobalContextItem000(final TestContextBooleanItem testGlobalContextItem000) {
62 this.testGlobalContextItem000 = testGlobalContextItem000;
66 * Gets the test global context item 001.
68 * @return the test global context item 001
70 public TestContextByteItem getTestGlobalContextItem001() {
71 return testGlobalContextItem001;
75 * Sets the test global context item 001.
77 * @param testGlobalContextItem001 the test global context item 001
79 public void setTestGlobalContextItem001(final TestContextByteItem testGlobalContextItem001) {
80 this.testGlobalContextItem001 = testGlobalContextItem001;
84 * Gets the test global context item 002.
86 * @return the test global context item 002
88 public TestContextIntItem getTestGlobalContextItem002() {
89 return testGlobalContextItem002;
93 * Sets the test global context item 002.
95 * @param testGlobalContextItem002 the test global context item 002
97 public void setTestGlobalContextItem002(final TestContextIntItem testGlobalContextItem002) {
98 this.testGlobalContextItem002 = testGlobalContextItem002;
102 * Gets the test global context item 003.
104 * @return the test global context item 003
106 public TestContextLongItem getTestGlobalContextItem003() {
107 return testGlobalContextItem003;
111 * Sets the test global context item 003.
113 * @param testGlobalContextItem003 the test global context item 003
115 public void setTestGlobalContextItem003(final TestContextLongItem testGlobalContextItem003) {
116 this.testGlobalContextItem003 = testGlobalContextItem003;
120 * Gets the test global context item 004.
122 * @return the test global context item 004
124 public TestContextFloatItem getTestGlobalContextItem004() {
125 return testGlobalContextItem004;
129 * Sets the test global context item 004.
131 * @param testGlobalContextItem004 the test global context item 004
133 public void setTestGlobalContextItem004(final TestContextFloatItem testGlobalContextItem004) {
134 this.testGlobalContextItem004 = testGlobalContextItem004;
138 * Gets the test global context item 005.
140 * @return the test global context item 005
142 public TestContextDoubleItem getTestGlobalContextItem005() {
143 return testGlobalContextItem005;
147 * Sets the test global context item 005.
149 * @param testGlobalContextItem005 the test global context item 005
151 public void setTestGlobalContextItem005(final TestContextDoubleItem testGlobalContextItem005) {
152 this.testGlobalContextItem005 = testGlobalContextItem005;
156 * Gets the test global context item 006.
158 * @return the test global context item 006
160 public TestContextStringItem getTestGlobalContextItem006() {
161 return testGlobalContextItem006;
165 * Sets the test global context item 006.
167 * @param testGlobalContextItem006 the test global context item 006
169 public void setTestGlobalContextItem006(final TestContextStringItem testGlobalContextItem006) {
170 this.testGlobalContextItem006 = testGlobalContextItem006;
174 * Gets the test global context item 007.
176 * @return the test global context item 007
178 public TestContextLongObjectItem getTestGlobalContextItem007() {
179 return testGlobalContextItem007;
183 * Sets the test global context item 007.
185 * @param testGlobalContextItem007 the test global context item 007
187 public void setTestGlobalContextItem007(final TestContextLongObjectItem testGlobalContextItem007) {
188 this.testGlobalContextItem007 = testGlobalContextItem007;
192 * Gets the test global context item 008.
194 * @return the test global context item 008
196 public TestContextDateItem getTestGlobalContextItem008() {
197 return testGlobalContextItem008;
201 * Sets the test global context item 008.
203 * @param testGlobalContextItem008 the test global context item 008
205 public void setTestGlobalContextItem008(final TestContextDateItem testGlobalContextItem008) {
206 this.testGlobalContextItem008 = testGlobalContextItem008;
210 * Gets the test global context item 009.
212 * @return the test global context item 009
214 public TestContextDateTzItem getTestGlobalContextItem009() {
215 return testGlobalContextItem009;
219 * Sets the test global context item 009.
221 * @param testGlobalContextItem009 the test global context item 009
223 public void setTestGlobalContextItem009(final TestContextDateTzItem testGlobalContextItem009) {
224 this.testGlobalContextItem009 = testGlobalContextItem009;
228 * Gets the test global context item 00 A.
230 * @return the test global context item 00 A
232 public TestContextDateLocaleItem getTestGlobalContextItem00A() {
233 return testGlobalContextItem00A;
237 * Sets the test global context item 00 A.
239 * @param testGlobalContextItem00A the test global context item 00 A
241 public void setTestGlobalContextItem00A(final TestContextDateLocaleItem testGlobalContextItem00A) {
242 this.testGlobalContextItem00A = testGlobalContextItem00A;
246 * Gets the test global context item 00 B.
248 * @return the test global context item 00 B
250 public TestContextTreeSetItem getTestGlobalContextItem00B() {
251 return testGlobalContextItem00B;
255 * Sets the test global context item 00 B.
257 * @param testGlobalContextItem00B the test global context item 00 B
259 public void setTestGlobalContextItem00B(final TestContextTreeSetItem testGlobalContextItem00B) {
260 this.testGlobalContextItem00B = testGlobalContextItem00B;
264 * Gets the test global context item 00 C.
266 * @return the test global context item 00 C
268 public TestContextTreeMapItem getTestGlobalContextItem00C() {
269 return testGlobalContextItem00C;
273 * Sets the test global context item 00 C.
275 * @param testGlobalContextItem00C the test global context item 00 C
277 public void setTestGlobalContextItem00C(final TestContextTreeMapItem testGlobalContextItem00C) {
278 this.testGlobalContextItem00C = testGlobalContextItem00C;
284 * @see java.lang.Object#hashCode()
287 public int hashCode() {
288 final int prime = HASH_PRIME_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());
309 * @see java.lang.Object#equals(java.lang.Object)
312 public boolean equals(final Object obj) {
319 if (getClass() != obj.getClass()) {
322 final TestGlobalContextItem other = (TestGlobalContextItem) obj;
323 if (testGlobalContextItem000 == null) {
324 if (other.testGlobalContextItem000 != null) {
327 } else if (!testGlobalContextItem000.equals(other.testGlobalContextItem000)) {
330 if (testGlobalContextItem001 == null) {
331 if (other.testGlobalContextItem001 != null) {
334 } else if (!testGlobalContextItem001.equals(other.testGlobalContextItem001)) {
337 if (testGlobalContextItem002 == null) {
338 if (other.testGlobalContextItem002 != null) {
341 } else if (!testGlobalContextItem002.equals(other.testGlobalContextItem002)) {
344 if (testGlobalContextItem003 == null) {
345 if (other.testGlobalContextItem003 != null) {
348 } else if (!testGlobalContextItem003.equals(other.testGlobalContextItem003)) {
351 if (testGlobalContextItem004 == null) {
352 if (other.testGlobalContextItem004 != null) {
355 } else if (!testGlobalContextItem004.equals(other.testGlobalContextItem004)) {
358 if (testGlobalContextItem005 == null) {
359 if (other.testGlobalContextItem005 != null) {
362 } else if (!testGlobalContextItem005.equals(other.testGlobalContextItem005)) {
365 if (testGlobalContextItem006 == null) {
366 if (other.testGlobalContextItem006 != null) {
369 } else if (!testGlobalContextItem006.equals(other.testGlobalContextItem006)) {
372 if (testGlobalContextItem007 == null) {
373 if (other.testGlobalContextItem007 != null) {
376 } else if (!testGlobalContextItem007.equals(other.testGlobalContextItem007)) {
379 if (testGlobalContextItem008 == null) {
380 if (other.testGlobalContextItem008 != null) {
383 } else if (!testGlobalContextItem008.equals(other.testGlobalContextItem008)) {
386 if (testGlobalContextItem009 == null) {
387 if (other.testGlobalContextItem009 != null) {
390 } else if (!testGlobalContextItem009.equals(other.testGlobalContextItem009)) {
393 if (testGlobalContextItem00A == null) {
394 if (other.testGlobalContextItem00A != null) {
397 } else if (!testGlobalContextItem00A.equals(other.testGlobalContextItem00A)) {
400 if (testGlobalContextItem00B == null) {
401 if (other.testGlobalContextItem00B != null) {
404 } else if (!testGlobalContextItem00B.equals(other.testGlobalContextItem00B)) {
407 if (testGlobalContextItem00C == null) {
408 if (other.testGlobalContextItem00C != null) {
411 } else if (!testGlobalContextItem00C.equals(other.testGlobalContextItem00C)) {
420 * @see java.lang.Object#toString()
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 + "]";