in brooklyn-server/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/templates/AbstractPortableTemplateBuilder.java [452:482]
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (getClass() != obj.getClass()) return false;
AbstractPortableTemplateBuilder other = (AbstractPortableTemplateBuilder) obj;
if (!Objects.equal(additionalOptions, other.additionalOptions)) return false;
if (!Objects.equal(commands, other.commands)) return false;
if (!Objects.equal(locationId, other.locationId)) return false;
if (!Objects.equal(hardware, other.hardware)) return false;
if (!Objects.equal(hardwareId, other.hardwareId)) return false;
if (!Objects.equal(image, other.image)) return false;
if (!Objects.equal(imageId, other.imageId)) return false;
if (!Objects.equal(imageDescriptionRegex, other.imageDescriptionRegex)) return false;
if (!Objects.equal(imageNameRegex, other.imageNameRegex)) return false;
if (!Objects.equal(imageVersionRegex, other.imageVersionRegex)) return false;
if (!Objects.equal(imageCondition, other.imageCondition)) return false;
if (!Objects.equal(imageChooserFunction, other.imageChooserFunction)) return false;
if (!Objects.equal(os, other.os)) return false;
if (!Objects.equal(osArchitectureRegex, other.osArchitectureRegex)) return false;
if (!Objects.equal(osDescriptionRegex, other.osDescriptionRegex)) return false;
if (!Objects.equal(osNameRegex, other.osNameRegex)) return false;
if (!Objects.equal(osVersionRegex, other.osVersionRegex)) return false;
if (!Objects.equal(is64bit, other.is64bit)) return false;
if (!Objects.equal(hypervisorRegex, other.hypervisorRegex)) return false;
if (!Objects.equal(minCores, other.minCores)) return false;
if (!Objects.equal(minRam, other.minRam)) return false;
if (!Objects.equal(minDisk, other.minDisk)) return false;
if (!Objects.equal(options, other.options)) return false;
if (!Objects.equal(template, other.template)) return false;
return true;
}