summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorshrek2000 <orenkle@amdocs.com>2019-06-05 17:13:18 +0300
committerAvi Gaffa <avi.gaffa@amdocs.com>2019-06-06 08:46:00 +0000
commit1e744a3293de1598d119c35a5efeb71c97c40159 (patch)
tree10e443b988fca3d1c83791abb231d05fa66b14aa /common
parentbf2f1915da0c7a5459930331d97059b8fc0c6190 (diff)
Add lombok support to simple classes
Change-Id: I1d39f6bc0513189ce0f3581ddc51e9f557d2dadc Issue-ID: SDC-2354 Signed-off-by: shrek2000 <orenkle@amdocs.com>
Diffstat (limited to 'common')
-rw-r--r--common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/extension/RequirementAssignmentExt.java32
1 files changed, 6 insertions, 26 deletions
diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/extension/RequirementAssignmentExt.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/extension/RequirementAssignmentExt.java
index 1f2827d705..f32efe435e 100644
--- a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/extension/RequirementAssignmentExt.java
+++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/extension/RequirementAssignmentExt.java
@@ -16,37 +16,17 @@
package org.onap.sdc.tosca.datatypes.model.extension;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
import org.onap.sdc.tosca.datatypes.model.RequirementAssignment;
+@Setter
+@Getter
+@EqualsAndHashCode
public class RequirementAssignmentExt extends RequirementAssignment {
private ServiceFilter service_filter;
- public ServiceFilter getService_filter() {
- return service_filter;
- }
- public void setService_filter(ServiceFilter serviceFilter) {
- this.service_filter = serviceFilter;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (!(o instanceof RequirementAssignmentExt)) {
- return false;
- }
-
- RequirementAssignmentExt that = (RequirementAssignmentExt) o;
-
- return getService_filter() != null ? getService_filter().equals(that.getService_filter()) :
- that.getService_filter() == null;
- }
-
- @Override
- public int hashCode() {
- return getService_filter() != null ? getService_filter().hashCode() : 0;
- }
}