All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy