/** * Initializes the values for this <code>TableRequestOptions</code> instance, if they are currently * <code>null</code>, using the values specified in the {@link CloudTableClient} parameter. * * @param options * A {@link TableRequestOptions} object which represents the input options to copy from when applying * defaults. * @param client * A {@link CloudTableClient} object from which to copy the timeout and retry policy. * * @return A {@link TableRequestOptions} object. * */ protected static final TableRequestOptions populateAndApplyDefaults(final TableRequestOptions options, final CloudTableClient client) { TableRequestOptions modifiedOptions = new TableRequestOptions(options); TableRequestOptions.populate(modifiedOptions, client.getDefaultRequestOptions()); TableRequestOptions.applyDefaults(modifiedOptions); return modifiedOptions; }
/** * Initializes the values for this <code>TableRequestOptions</code> instance, if they are currently * <code>null</code>, using the values specified in the {@link CloudTableClient} parameter. * * @param options * A {@link TableRequestOptions} object which represents the input options to copy from when applying * defaults. * @param client * A {@link CloudTableClient} object from which to copy the timeout and retry policy. * * @return A {@link TableRequestOptions} object. * */ protected static final TableRequestOptions populateAndApplyDefaults(final TableRequestOptions options, final CloudTableClient client) { TableRequestOptions modifiedOptions = new TableRequestOptions(options); TableRequestOptions.populate(modifiedOptions, client.getDefaultRequestOptions()); TableRequestOptions.applyDefaults(modifiedOptions); return modifiedOptions; }