caacd12d8c16d0eaf8ddf16a090d7b2301fc59fb
[dcaegen2/services/mapper.git] /
1 /*\r
2 * ============LICENSE_START=======================================================\r
3 * ONAP : DCAE\r
4 * ================================================================================\r
5 * Copyright 2018 TechMahindra\r
6 *=================================================================================\r
7 * Licensed under the Apache License, Version 2.0 (the "License");\r
8 * you may not use this file except in compliance with the License.\r
9 * You may obtain a copy of the License at\r
10 *\r
11 *     http://www.apache.org/licenses/LICENSE-2.0\r
12 *\r
13 * Unless required by applicable law or agreed to in writing, software\r
14 * distributed under the License is distributed on an "AS IS" BASIS,\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16 * See the License for the specific language governing permissions and\r
17 * limitations under the License.\r
18 * ============LICENSE_END=========================================================\r
19 */\r
20 package org.onap.dcaegen2.ves.domain.ves7_0;\r
21 \r
22 import java.util.HashMap;\r
23 import java.util.Map;\r
24 import com.fasterxml.jackson.annotation.JsonAnyGetter;\r
25 import com.fasterxml.jackson.annotation.JsonAnySetter;\r
26 import com.fasterxml.jackson.annotation.JsonIgnore;\r
27 import com.fasterxml.jackson.annotation.JsonInclude;\r
28 import com.fasterxml.jackson.annotation.JsonPropertyOrder;\r
29 import org.apache.commons.lang.builder.EqualsBuilder;\r
30 import org.apache.commons.lang.builder.HashCodeBuilder;\r
31 import org.apache.commons.lang.builder.ToStringBuilder;\r
32 \r
33 \r
34 /**\r
35  * an associative array which is an array of key:value pairs\r
36  * \r
37  */\r
38 @JsonInclude(JsonInclude.Include.NON_NULL)\r
39 @JsonPropertyOrder({\r
40 \r
41 })\r
42 public class AlarmAdditionalInformation {\r
43 \r
44     @JsonIgnore\r
45     private Map<String, String> additionalProperties = new HashMap<String, String>();\r
46 \r
47     @Override\r
48     public String toString() {\r
49         return ToStringBuilder.reflectionToString(this);\r
50     }\r
51 \r
52     @JsonAnyGetter\r
53     public Map<String, String> getAdditionalProperties() {\r
54         return this.additionalProperties;\r
55     }\r
56 \r
57     @JsonAnySetter\r
58     public void setAdditionalProperty(String name, String value) {\r
59         this.additionalProperties.put(name, value);\r
60     }\r
61 \r
62     @Override\r
63     public int hashCode() {\r
64         return new HashCodeBuilder().append(additionalProperties).toHashCode();\r
65     }\r
66 \r
67     @Override\r
68     public boolean equals(Object other) {\r
69         if (other == this) {\r
70             return true;\r
71         }\r
72         if ((other instanceof AlarmAdditionalInformation) == false) {\r
73             return false;\r
74         }\r
75         AlarmAdditionalInformation rhs = ((AlarmAdditionalInformation) other);\r
76         return new EqualsBuilder().append(additionalProperties, rhs.additionalProperties).isEquals();\r
77     }\r
78 \r
79 }\r