@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Subscription)) return false; Subscription that = (Subscription) o; if (Double.compare(that.discountAmount, discountAmount) != 0) return false; if (Double.compare(that.discountPercent, discountPercent) != 0) return false; if (isAutoRenewEnabled != that.isAutoRenewEnabled) return false; if (Double.compare(that.price, price) != 0) return false; if (amount != null ? !amount.equals(that.amount) : that.amount != null) return false; if (descendants != null ? !descendants.equals(that.descendants) : that.descendants != null) return false; if (endTime != null ? !endTime.equals(that.endTime) : that.endTime != null) return false; if (id != null ? !id.equals(that.id) : that.id != null) return false; if (lastNotification != null ? !lastNotification.equals(that.lastNotification) : that.lastNotification != null) return false; if (period != null ? !period.equals(that.period) : that.period != null) return false; if (remaining != null ? !remaining.equals(that.remaining) : that.remaining != null) return false; if (resource != null ? !resource.equals(that.resource) : that.resource != null) return false; if (resourceUri != null ? !resourceUri.equals(that.resourceUri) : that.resourceUri != null) return false; if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null) return false; if (status != null ? !status.equals(that.status) : that.status != null) return false; if (subscribedObject != null ? !subscribedObject.equals(that.subscribedObject) : that.subscribedObject != null) return false; if (uuid != null ? !uuid.equals(that.uuid) : that.uuid != null) return false; return true; }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Subscription)) return false; Subscription that = (Subscription) o; if (Double.compare(that.discountAmount, discountAmount) != 0) return false; if (Double.compare(that.discountPercent, discountPercent) != 0) return false; if (isAutoRenewEnabled != that.isAutoRenewEnabled) return false; if (Double.compare(that.price, price) != 0) return false; if (amount != null ? !amount.equals(that.amount) : that.amount != null) return false; if (descendants != null ? !descendants.equals(that.descendants) : that.descendants != null) return false; if (endTime != null ? !endTime.equals(that.endTime) : that.endTime != null) return false; if (id != null ? !id.equals(that.id) : that.id != null) return false; if (lastNotification != null ? !lastNotification.equals(that.lastNotification) : that.lastNotification != null) return false; if (period != null ? !period.equals(that.period) : that.period != null) return false; if (remaining != null ? !remaining.equals(that.remaining) : that.remaining != null) return false; if (resource != null ? !resource.equals(that.resource) : that.resource != null) return false; if (resourceUri != null ? !resourceUri.equals(that.resourceUri) : that.resourceUri != null) return false; if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null) return false; if (status != null ? !status.equals(that.status) : that.status != null) return false; if (subscribedObject != null ? !subscribedObject.equals(that.subscribedObject) : that.subscribedObject != null) return false; if (uuid != null ? !uuid.equals(that.uuid) : that.uuid != null) return false; return true; }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Subscription)) return false; Subscription that = (Subscription) o; if (Double.compare(that.discountAmount, discountAmount) != 0) return false; if (Double.compare(that.discountPercent, discountPercent) != 0) return false; if (isAutoRenewEnabled != that.isAutoRenewEnabled) return false; if (Double.compare(that.price, price) != 0) return false; if (amount != null ? !amount.equals(that.amount) : that.amount != null) return false; if (descendants != null ? !descendants.equals(that.descendants) : that.descendants != null) return false; if (endTime != null ? !endTime.equals(that.endTime) : that.endTime != null) return false; if (id != null ? !id.equals(that.id) : that.id != null) return false; if (lastNotification != null ? !lastNotification.equals(that.lastNotification) : that.lastNotification != null) return false; if (period != null ? !period.equals(that.period) : that.period != null) return false; if (remaining != null ? !remaining.equals(that.remaining) : that.remaining != null) return false; if (resource != null ? !resource.equals(that.resource) : that.resource != null) return false; if (resourceUri != null ? !resourceUri.equals(that.resourceUri) : that.resourceUri != null) return false; if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null) return false; if (status != null ? !status.equals(that.status) : that.status != null) return false; if (subscribedObject != null ? !subscribedObject.equals(that.subscribedObject) : that.subscribedObject != null) return false; if (uuid != null ? !uuid.equals(that.uuid) : that.uuid != null) return false; return true; }