@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (policy != null ? policy.hashCode() : 0); return result; }
@Override public void writeExternal(final ObjectOutput out) throws IOException { super.writeExternal(out); out.writeBoolean(policy != null); if (policy != null) { out.writeUTF(policy.name()); } }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); this.policy = in.readBoolean() ? BillingActionPolicy.valueOf(in.readUTF()) : null; } }
default: throw new SubscriptionBaseError(String.format( "Unexpected policy type %s", policy.toString()));
return false; if (billingPolicy != null ? !billingPolicy.equals(that.billingPolicy) : that.billingPolicy != null) { return false;
default: throw new SubscriptionBaseError(String.format( "Unexpected policy type %s", policy.toString()));
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (policy != null ? policy.hashCode() : 0); return result; }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); this.policy = in.readBoolean() ? BillingActionPolicy.valueOf(in.readUTF()) : null; } }
@Override public void writeExternal(final ObjectOutput out) throws IOException { super.writeExternal(out); out.writeBoolean(policy != null); if (policy != null) { out.writeUTF(policy.name()); } }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (policy != null ? policy.hashCode() : 0); return result; }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); this.policy = in.readBoolean() ? BillingActionPolicy.valueOf(in.readUTF()) : null; } }
@Override public void writeExternal(final ObjectOutput out) throws IOException { super.writeExternal(out); out.writeBoolean(policy != null); if (policy != null) { out.writeUTF(policy.name()); } }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (policy != null ? policy.hashCode() : 0); return result; }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); this.policy = in.readBoolean() ? BillingActionPolicy.valueOf(in.readUTF()) : null; } }
@Override public void writeExternal(final ObjectOutput out) throws IOException { super.writeExternal(out); out.writeBoolean(policy != null); if (policy != null) { out.writeUTF(policy.name()); } }
@Override public int hashCode() { int result = dryRunType != null ? dryRunType.hashCode() : 0; result = 31 * result + (entitlementSpecifier != null ? entitlementSpecifier.hashCode() : 0); result = 31 * result + (action != null ? action.hashCode() : 0); result = 31 * result + (subscriptionId != null ? subscriptionId.hashCode() : 0); result = 31 * result + (effectiveDate != null ? effectiveDate.hashCode() : 0); result = 31 * result + (bundleId != null ? bundleId.hashCode() : 0); result = 31 * result + (billingActionPolicy != null ? billingActionPolicy.hashCode() : 0); return result; } }
@Override public int hashCode() { int result = dryRunAction != null ? dryRunAction.hashCode() : 0; result = 31 * result + (dryRunType != null ? dryRunType.hashCode() : 0); result = 31 * result + (phaseType != null ? phaseType.hashCode() : 0); result = 31 * result + (productName != null ? productName.hashCode() : 0); result = 31 * result + (productCategory != null ? productCategory.hashCode() : 0); result = 31 * result + (billingPeriod != null ? billingPeriod.hashCode() : 0); result = 31 * result + (priceListName != null ? priceListName.hashCode() : 0); result = 31 * result + (effectiveDate != null ? effectiveDate.hashCode() : 0); result = 31 * result + (subscriptionId != null ? subscriptionId.hashCode() : 0); result = 31 * result + (bundleId != null ? bundleId.hashCode() : 0); result = 31 * result + (billingPolicy != null ? billingPolicy.hashCode() : 0); result = 31 * result + (priceOverrides != null ? priceOverrides.hashCode() : 0); return result; } }