From 1e744a3293de1598d119c35a5efeb71c97c40159 Mon Sep 17 00:00:00 2001 From: shrek2000 Date: Wed, 5 Jun 2019 17:13:18 +0300 Subject: Add lombok support to simple classes Change-Id: I1d39f6bc0513189ce0f3581ddc51e9f557d2dadc Issue-ID: SDC-2354 Signed-off-by: shrek2000 --- .../model/extension/RequirementAssignmentExt.java | 32 ++++------------------ 1 file changed, 6 insertions(+), 26 deletions(-) (limited to 'common/onap-tosca-datatype') 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; - } } -- cgit 1.2.3-korg