/** * Optionally specify a data transformation function for the request. * * @param transform the data transformation method that the server should pre-process the data with * @return a Builder instance, not null */ public Builder withTransform(final Transform transform) { ArgumentChecker.notNull(transform, "transform"); _transform = transform; return this; }
/** * Print a nicely formatted representation of this object. Currently prints a nicely formatted JSON representation. * * @return a string containing a multi-line description of this object */ public String toPrettyPrintedString() { return PrettyPrinter.toPrettyPrintedString(this); }
/** * Specialised to JSONObject. * {@inheritDoc} */ public JSONObject getJSONResponse(final WebTarget target, final Request request) { return _legacyRestDataProvider.getJSONResponse(target); }
/** * Constructor to augment enum with correct quandl API string. * * @param quandlString string to pass to Quandl REST API */ Frequency(final String quandlString) { ArgumentChecker.notNullOrEmpty(quandlString, "quandlString"); _quandlString = quandlString; }
/** * Specialised to TabularResult. * {@inheritDoc} */ public TabularResult getTabularResponse(final WebTarget target, final Request request) { return _legacyRestDataProvider.getTabularResponse(target); } }
/** * Optionally specify a start date cut-off for the request. * * @param startDate the start date of the request (inclusive), not null * @return a Builder instance, not null */ public Builder withStartDate(final LocalDate startDate) { ArgumentChecker.notNull(startDate, "startDate"); _startDate = startDate; return this; }
/** * Print a nicely formatted representation of this object. Currently prints a nicely formatted ACSII table. * * @return a string containing a multi-line description of this object */ public String toPrettyPrintedString() { return PrettyPrinter.toPrettyPrintedString(this); } }
/** * Optionally specify the sort order of the results. * * @param sortOrder the sort order of the results * @return a Builder object onto which you can chain additional calls */ public Builder withSortOrder(final SortOrder sortOrder) { ArgumentChecker.notNull(sortOrder, "sortOrder"); _sortOrder = sortOrder; return this; }
/** * Optionally specify a data transformation function for the request. * * @param transform the data transformation method that the server should pre-process the data with * @return a Builder instance, not null */ public Builder withTransform(final Transform transform) { ArgumentChecker.notNull(transform, "transform"); _transform = transform; return this; }
/** * Optionally specify the sort order of the results. * * @param sortOrder the sort order of the results * @return a Builder object onto which you can chain additional calls */ public Builder withSortOrder(final SortOrder sortOrder) { ArgumentChecker.notNull(sortOrder, "sortOrder"); _sortOrder = sortOrder; return this; }
/** * Specify the database to search within. For example WIKI * * @param databaseCode the database code to search within, not null. * @return this Builder, with this database code specified */ public Builder withDatabaseCode(final String databaseCode) { ArgumentChecker.notNull(databaseCode, "databaseCode"); _databaseCode = databaseCode; return this; }
/** * Specify the search term to use for your query. Multiple search terms can be separated by * the + character. * * @param query the query string to use, not null * @return this Builder, with this query added */ public Builder withQuery(final String query) { ArgumentChecker.notNull(query, "query"); _query = query; return this; }
/** * Optionally specify an end date cut-off for the request. * * @param endDate the end date of the request (inclusive), not null * @return a Builder instance, not null */ public Builder withEndDate(final LocalDate endDate) { ArgumentChecker.notNull(endDate, "endDate"); _endDate = endDate; return this; }
/** * Optionally specify an end date cut-off for the request. * * @param endDate the end date of the request (inclusive), not null * @return a Builder instance, not null */ public Builder withEndDate(final LocalDate endDate) { ArgumentChecker.notNull(endDate, "endDate"); _endDate = endDate; return this; }
/** * Optionally specify the sampling frequency for the request. * * @param frequency the sampling frequency, not null * @return a Builder instance, not null */ public Builder withFrequency(final Frequency frequency) { ArgumentChecker.notNull(frequency, "frequency"); _frequency = frequency; return this; }
/** * Specify the number of retries to execute before giving up on a request. * * @param retryPolicy the policy to follow regarding retries * @return this builder */ public Builder withRetryPolicy(final RetryPolicy retryPolicy) { ArgumentChecker.notNull(retryPolicy, "retryPolicy"); _retryPolicy = retryPolicy; return this; }
/** * Optionally specify a start date cut-off for the request. * * @param startDate the start date of the request (inclusive), not null * @return a Builder instance, not null */ public Builder withStartDate(final LocalDate startDate) { ArgumentChecker.notNull(startDate, "startDate"); _startDate = startDate; return this; }
/** * Create a ResultSaver using a custom base directory with it's filename counter set to zero. * @param baseDir the directory in which to save files */ public ResultSaver(final File baseDir) { ArgumentChecker.notNull(baseDir, "baseDir"); _baseDir = baseDir; }
/** * Create a ResultSaver using a custom base directory with it's filename counter set to zero. * @param baseDir the directory in which to save files */ public ResultSaver(final File baseDir) { ArgumentChecker.notNull(baseDir, "baseDir"); _baseDir = baseDir; }
/** * Create a ResultSaver using a custom base directory with it's filename counter set to zero. * @param baseDir the directory in which to look for files */ public ResultChecker(final File baseDir) { ArgumentChecker.notNull(baseDir, "baseDir"); _baseDir = baseDir; }