@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.prettyName = in.readBoolean() ? in.readUTF() : null; this.type = in.readBoolean() ? PhaseType.valueOf(in.readUTF()) : null; this.duration = (DefaultDuration) in.readObject(); this.fixed = (DefaultFixed) in.readObject(); this.recurring = (DefaultRecurring) in.readObject(); this.usages = (DefaultUsage[]) in.readObject(); this.planName = in.readUTF(); this.product = (Product) in.readObject(); } }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); this.phaseType = in.readBoolean() ? PhaseType.valueOf(in.readUTF()) : null; } }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.billingPeriod = in.readBoolean() ? BillingPeriod.valueOf(in.readUTF()) : null; this.recurringPrice = (DefaultInternationalPrice) in.readObject(); this.planName = in.readUTF(); this.phaseType = in.readBoolean() ? PhaseType.valueOf(in.readUTF()) : null; } }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.phaseType = in.readBoolean() ? PhaseType.valueOf(in.readUTF()) : null; this.fromProduct = (DefaultProduct) in.readObject(); this.fromProductCategory = in.readBoolean() ? ProductCategory.valueOf(in.readUTF()) : null; this.fromBillingPeriod = in.readBoolean() ? BillingPeriod.valueOf(in.readUTF()) : null; this.fromPriceList = (DefaultPriceList) in.readObject(); this.toProduct = (DefaultProduct) in.readObject(); this.toProductCategory = in.readBoolean() ? ProductCategory.valueOf(in.readUTF()) : null; this.toBillingPeriod = in.readBoolean() ? BillingPeriod.valueOf(in.readUTF()) : null; this.toPriceList = (DefaultPriceList) in.readObject(); } }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.prettyName = in.readBoolean() ? in.readUTF() : null; this.type = in.readBoolean() ? PhaseType.valueOf(in.readUTF()) : null; this.duration = (DefaultDuration) in.readObject(); this.fixed = (DefaultFixed) in.readObject(); this.recurring = (DefaultRecurring) in.readObject(); this.usages = (DefaultUsage[]) in.readObject(); this.planName = in.readUTF(); this.product = (Product) in.readObject(); } }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); this.phaseType = in.readBoolean() ? PhaseType.valueOf(in.readUTF()) : null; } }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.billingPeriod = in.readBoolean() ? BillingPeriod.valueOf(in.readUTF()) : null; this.recurringPrice = (DefaultInternationalPrice) in.readObject(); this.planName = in.readUTF(); this.phaseType = in.readBoolean() ? PhaseType.valueOf(in.readUTF()) : null; } }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.phaseType = in.readBoolean() ? PhaseType.valueOf(in.readUTF()) : null; this.fromProduct = (DefaultProduct) in.readObject(); this.fromProductCategory = in.readBoolean() ? ProductCategory.valueOf(in.readUTF()) : null; this.fromBillingPeriod = in.readBoolean() ? BillingPeriod.valueOf(in.readUTF()) : null; this.fromPriceList = (DefaultPriceList) in.readObject(); this.toProduct = (DefaultProduct) in.readObject(); this.toProductCategory = in.readBoolean() ? ProductCategory.valueOf(in.readUTF()) : null; this.toBillingPeriod = in.readBoolean() ? BillingPeriod.valueOf(in.readUTF()) : null; this.toPriceList = (DefaultPriceList) in.readObject(); } }
final PhaseType phaseType = input.getPhaseType() != null ? PhaseType.valueOf(input.getPhaseType()) : null;