Defines target and builds client. @param apiType API interface @param url base URL @param class of API interface @return built client
(final Class<T> apiType, final String url)
| 369 | * @return built client |
| 370 | */ |
| 371 | @Override |
| 372 | public <T> T target(final Class<T> apiType, final String url) { |
| 373 | checkNotNull(apiType, "Argument apiType must be not null"); |
| 374 | checkNotNull(url, "Argument url must be not null"); |
| 375 | |
| 376 | return target(new Target.HardCodedTarget<>(apiType, url)); |
| 377 | } |
| 378 | |
| 379 | /** |
| 380 | * Defines target and builds client. |