Reformat catalog-model
[sdc.git] / catalog-model / src / main / java / org / openecomp / sdc / be / model / OperationInstance.java
1 /*
2  * Copyright © 2016-2018 European Support Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.openecomp.sdc.be.model;
17
18 import java.util.Map;
19 import java.util.Objects;
20 import org.openecomp.sdc.be.datatypes.elements.OperationImplementation;
21
22 public class OperationInstance/* extends Operation*/ {
23
24     private OperationImplementation implementation;
25     private Map<String, Object> inputs;
26
27
28     public OperationImplementation getImplementation() {
29         return implementation;
30     }
31
32     public void setImplementation(OperationImplementation implementation) {
33         this.implementation = implementation;
34     }
35
36     public Map<String, Object> getInputs() {
37         return inputs;
38     }
39
40     public void setInputs(Map<String, Object> inputs) {
41         this.inputs = inputs;
42     }
43
44     @Override
45     public boolean equals(Object o) {
46         if (this == o) {
47             return true;
48         }
49         if (!(o instanceof OperationInstance)) {
50             return false;
51         }
52         OperationInstance that = (OperationInstance) o;
53         return Objects.equals(implementation, that.implementation) &&
54             Objects.equals(inputs, that.inputs);
55     }
56
57     @Override
58     public int hashCode() {
59
60         return Objects.hash(implementation, inputs);
61     }
62 }
63