@Test public void should_create_from_DEMO_defaults() { assertThat(PricePlan.of(DEMO), not(nullValue())); }
public static PricePlan of(PricePlanDefaults ppd) { return PricePlan.builder() .maxMethods(ppd.getMaxMethods()) .maxNumberOfAgents(ppd.getMaxNumberOfAgents()) .name(ppd.name()) .note(null) .overrideBy(null) .pollIntervalSeconds(ppd.getPollIntervalSeconds()) .publishIntervalSeconds(ppd.getPublishIntervalSeconds()) .retentionPeriodDays(ppd.getRetentionPeriodDays()) .retryIntervalSeconds(ppd.getRetryIntervalSeconds()) .trialPeriodDays(ppd.getTrialPeriodDays()) .build(); }
PricePlan { public static PricePlan of(PricePlanDefaults ppd) { return PricePlan.builder() .maxMethods(ppd.getMaxMethods()) .maxNumberOfAgents(ppd.getMaxNumberOfAgents()) .name(ppd.name()) .note(null) .overrideBy(null) .pollIntervalSeconds(ppd.getPollIntervalSeconds()) .publishIntervalSeconds(ppd.getPublishIntervalSeconds()) .retentionPeriodDays(ppd.getRetentionPeriodDays()) .retryIntervalSeconds(ppd.getRetryIntervalSeconds()) .trialPeriodDays(ppd.getTrialPeriodDays()) .build(); } }
PricePlan { public static PricePlan of(PricePlanDefaults ppd) { return PricePlan.builder() .maxMethods(ppd.getMaxMethods()) .maxNumberOfAgents(ppd.getMaxNumberOfAgents()) .name(ppd.name()) .note(null) .overrideBy(null) .pollIntervalSeconds(ppd.getPollIntervalSeconds()) .publishIntervalSeconds(ppd.getPublishIntervalSeconds()) .retentionPeriodDays(ppd.getRetentionPeriodDays()) .retryIntervalSeconds(ppd.getRetryIntervalSeconds()) .trialPeriodDays(ppd.getTrialPeriodDays()) .build(); }  }
PricePlan { public static PricePlan of(PricePlanDefaults ppd) { return PricePlan.builder() .maxMethods(ppd.getMaxMethods()) .maxNumberOfAgents(ppd.getMaxNumberOfAgents()) .name(ppd.name()) .note(null) .overrideBy(null) .pollIntervalSeconds(ppd.getPollIntervalSeconds()) .publishIntervalSeconds(ppd.getPublishIntervalSeconds()) .retentionPeriodDays(ppd.getRetentionPeriodDays()) .retryIntervalSeconds(ppd.getRetryIntervalSeconds()) .trialPeriodDays(ppd.getTrialPeriodDays()) .build(); }  Integer adjustCollectedDays(Integer realCollectedDays); Instant adjustInstant(Instant realInstant, Clock clock); Long adjustInstantToMillis(Instant realInstant, Clock clock); Long adjustTimestampMillis(Long realTimestampMillis, Clock clock); static PricePlan of(PricePlanDefaults ppd); }
PricePlan { public static PricePlan of(PricePlanDefaults ppd) { return PricePlan.builder() .maxMethods(ppd.getMaxMethods()) .maxNumberOfAgents(ppd.getMaxNumberOfAgents()) .name(ppd.name()) .note(null) .overrideBy(null) .pollIntervalSeconds(ppd.getPollIntervalSeconds()) .publishIntervalSeconds(ppd.getPublishIntervalSeconds()) .retentionPeriodDays(ppd.getRetentionPeriodDays()) .retryIntervalSeconds(ppd.getRetryIntervalSeconds()) .trialPeriodDays(ppd.getTrialPeriodDays()) .build(); }  Integer adjustCollectedDays(Integer realCollectedDays); Instant adjustInstant(Instant realInstant, Clock clock); Long adjustInstantToMillis(Instant realInstant, Clock clock); Long adjustTimestampMillis(Long realTimestampMillis, Clock clock); static PricePlan of(PricePlanDefaults ppd);  }