public boolean equals()

in cloudsigma2/src/main/java/org/jclouds/cloudsigma2/domain/Transaction.java [147:162]


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

      Transaction that = (Transaction) o;

      if (Double.compare(that.amount, amount) != 0) return false;
      if (billingCycle != that.billingCycle) return false;
      if (Double.compare(that.end, end) != 0) return false;
      if (Double.compare(that.initial, initial) != 0) return false;
      if (id != null ? !id.equals(that.id) : that.id != null) return false;
      if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false;
      if (time != null ? !time.equals(that.time) : that.time != null) return false;

      return true;
   }