public boolean equals()

in providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/domain/LaunchSpecification.java [411:487]


   public boolean equals(Object obj) {
      if (this == obj)
         return true;
      if (obj == null)
         return false;
      if (getClass() != obj.getClass())
         return false;
      LaunchSpecification other = (LaunchSpecification) obj;
      if (availabilityZone == null) {
         if (other.availabilityZone != null)
            return false;
      } else if (!availabilityZone.equals(other.availabilityZone))
         return false;
      if (subnetId == null) {
         if (other.subnetId != null)
            return false;
      } else if (!subnetId.equals(other.subnetId))
         return false;      
      if (blockDeviceMappings == null) {
         if (other.blockDeviceMappings != null)
            return false;
      } else if (!blockDeviceMappings.equals(other.blockDeviceMappings))
         return false;
      if (imageId == null) {
         if (other.imageId != null)
            return false;
      } else if (!imageId.equals(other.imageId))
         return false;
      if (instanceType == null) {
         if (other.instanceType != null)
            return false;
      } else if (!instanceType.equals(other.instanceType))
         return false;
      if (kernelId == null) {
         if (other.kernelId != null)
            return false;
      } else if (!kernelId.equals(other.kernelId))
         return false;
      if (keyName == null) {
         if (other.keyName != null)
            return false;
      } else if (!keyName.equals(other.keyName))
         return false;
      if (monitoringEnabled == null) {
         if (other.monitoringEnabled != null)
            return false;
      } else if (!monitoringEnabled.equals(other.monitoringEnabled))
         return false;
      if (ramdiskId == null) {
         if (other.ramdiskId != null)
            return false;
      } else if (!ramdiskId.equals(other.ramdiskId))
         return false;
      if (securityGroupIdToNames == null) {
         if (other.securityGroupIdToNames != null)
            return false;
      } else if (!securityGroupIdToNames.equals(other.securityGroupIdToNames))
         return false;
      if (securityGroupIds == null) {
         if (other.securityGroupIds != null)
            return false;
      } else if (!securityGroupIds.equals(other.securityGroupIds))
         return false;
      if (securityGroupNames == null) {
         if (other.securityGroupNames != null)
            return false;
      } else if (!securityGroupNames.equals(other.securityGroupNames))
         return false;
      if (!iamInstanceProfile.isPresent()) {
         if (other.iamInstanceProfile.isPresent())
            return false;
      } else if (!iamInstanceProfile.get().equals(other.iamInstanceProfile.orNull()))
         return false;
      if (!Arrays.equals(userData, other.userData))
         return false;
      return true;
   }