in apis/ec2/src/main/java/org/jclouds/ec2/domain/ReservedInstancesOffering.java [139:179]
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ReservedInstancesOffering other = (ReservedInstancesOffering) obj;
if (availabilityZone == null) {
if (other.availabilityZone != null)
return false;
} else if (!availabilityZone.equals(other.availabilityZone))
return false;
if (duration != other.duration)
return false;
if (Float.floatToIntBits(fixedPrice) != Float.floatToIntBits(other.fixedPrice))
return false;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
if (instanceType == null) {
if (other.instanceType != null)
return false;
} else if (!instanceType.equals(other.instanceType))
return false;
if (productDescription == null) {
if (other.productDescription != null)
return false;
} else if (!productDescription.equals(other.productDescription))
return false;
if (region == null) {
if (other.region != null)
return false;
} else if (!region.equals(other.region))
return false;
if (Float.floatToIntBits(usagePrice) != Float.floatToIntBits(other.usagePrice))
return false;
return true;
}