public boolean equals()

in cloudsigma2/src/main/java/org/jclouds/cloudsigma2/domain/CalcSubscription.java [204:222]


   public boolean equals(Object o) {
      if (this == o) return true;
      if (!(o instanceof CalcSubscription)) return false;

      CalcSubscription that = (CalcSubscription) o;

      if (amount != null ? !amount.equals(that.amount) : that.amount != null) return false;
      if (discountAmount != null ? !discountAmount.equals(that.discountAmount) : that.discountAmount != null)
          return false;
      if (discountPercent != null ? !discountPercent.equals(that.discountPercent) : that.discountPercent != null)
          return false;
      if (price != null ? !price.equals(that.price) : that.price != null) return false;
      if (endTime != null ? !endTime.equals(that.endTime) : that.endTime != null) return false;
      if (period != null ? !period.equals(that.period) : that.period != null) return false;
      if (resource != that.resource) return false;
      if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null) return false;

      return true;
   }