fde563cf3a2c7ba61c03282374d92797fed5757e
[policy/apex-pdp.git] / testsuites / integration / integration-common / src / main / java / org / onap / policy / apex / context / test / concepts / TestContextIntItem.java
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
4  *  Modifications Copyright (C) 2019-2020 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 import lombok.Data;
27
28 /**
29  * The Class TestContextIntItem.
30  */
31 @Data
32 public class TestContextIntItem implements Serializable {
33     private static final long serialVersionUID = -8978435658277900984L;
34
35     private int intValue = 0;
36
37     /**
38      * The Constructor.
39      */
40     public TestContextIntItem() {
41         // Default constructor
42     }
43
44     /**
45      * The Constructor.
46      *
47      * @param intValue the int value
48      */
49     public TestContextIntItem(final Integer intValue) {
50         this.intValue = intValue;
51     }
52
53     /**
54      * The Constructor.
55      *
56      * @param original the original
57      */
58     public TestContextIntItem(final TestContextIntItem original) {
59         this.intValue = original.intValue;
60     }
61
62     public Integer getIncrementedIntValue() {
63         return intValue + 1;
64     }
65 }