cturing.sds-aspect-model-java-generator.1.0.1.source-code.java-pojo-equals-method-lib.vm Maven / Gradle / Ivy
#macro( javaPojoEqualsMethod )
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final $element.name that = ($element.name) o;
return #foreach( $property in $element.properties )
Objects.equals(${property.getPayloadName()}, that.${property.getPayloadName()})
#if( $foreach.hasNext) && #end
#end;
}
#end