@Test public void merge() { assertEquals(savedSearchConfig, new SavedSearchConfig.Builder().build().merge(savedSearchConfig)); }
@Override public SavedSearchConfig merge(final SavedSearchConfig savedSearchConfig) { return savedSearchConfig != null ? new SavedSearchConfig.Builder() .setPollForUpdates(pollForUpdates == null ? savedSearchConfig.pollForUpdates : pollForUpdates) .setPollingInterval(pollingInterval == null ? savedSearchConfig.pollingInterval : pollingInterval) .build() : this; }
SavedSearchConfig implements OptionalConfigurationComponent<SavedSearchConfig> { @Override public SavedSearchConfig merge(final SavedSearchConfig savedSearchConfig) { return savedSearchConfig != null ? new SavedSearchConfig.Builder() .setPollForUpdates(pollForUpdates == null ? savedSearchConfig.pollForUpdates : pollForUpdates) .setPollingInterval(pollingInterval == null ? savedSearchConfig.pollingInterval : pollingInterval) .build() : this; } }
SavedSearchConfig implements OptionalConfigurationComponent<SavedSearchConfig> { @Override public SavedSearchConfig merge(final SavedSearchConfig savedSearchConfig) { return savedSearchConfig != null ? new SavedSearchConfig.Builder() .setPollForUpdates(pollForUpdates == null ? savedSearchConfig.pollForUpdates : pollForUpdates) .setPollingInterval(pollingInterval == null ? savedSearchConfig.pollingInterval : pollingInterval) .build() : this; } private  SavedSearchConfig(final Builder builder); }
SavedSearchConfig implements OptionalConfigurationComponent<SavedSearchConfig> { @Override public SavedSearchConfig merge(final SavedSearchConfig savedSearchConfig) { return savedSearchConfig != null ? new SavedSearchConfig.Builder() .setPollForUpdates(pollForUpdates == null ? savedSearchConfig.pollForUpdates : pollForUpdates) .setPollingInterval(pollingInterval == null ? savedSearchConfig.pollingInterval : pollingInterval) .build() : this; } private  SavedSearchConfig(final Builder builder); @Override SavedSearchConfig merge(final SavedSearchConfig savedSearchConfig); @Override void basicValidate(final String section); @Override @JsonIgnore Boolean getEnabled(); }
SavedSearchConfig implements OptionalConfigurationComponent<SavedSearchConfig> { @Override public SavedSearchConfig merge(final SavedSearchConfig savedSearchConfig) { return savedSearchConfig != null ? new SavedSearchConfig.Builder() .setPollForUpdates(pollForUpdates == null ? savedSearchConfig.pollForUpdates : pollForUpdates) .setPollingInterval(pollingInterval == null ? savedSearchConfig.pollingInterval : pollingInterval) .build() : this; } private  SavedSearchConfig(final Builder builder); @Override SavedSearchConfig merge(final SavedSearchConfig savedSearchConfig); @Override void basicValidate(final String section); @Override @JsonIgnore Boolean getEnabled();  }