Interface CompletedDownload.UntypedBuilder
-
- Enclosing class:
- CompletedDownload<ResultT>
public static interface CompletedDownload.UntypedBuilderInitial calls toCompletedDownload.builder()return anCompletedDownload.UntypedBuilder, where the builder is not yet parameterized with the generic type associated withCompletedDownload. This prevents the otherwise awkward syntax of having to explicitly cast the builder type, e.g., Instead, the type may be inferred as part of specifying theresult(Object)parameter, at which point the builder chain will return a newCompletedDownload.TypedBuilder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> CompletedDownload.TypedBuilder<T>result(T result)Specifies the result of the completed download.
-
-
-
Method Detail
-
result
<T> CompletedDownload.TypedBuilder<T> result(T result)
Specifies the result of the completed download. This method also infers the generic type ofCompletedDownloadto create.- Type Parameters:
T- the type ofCompletedDownloadto create- Parameters:
result- the result of the completed download, as transformed by anAsyncResponseTransformer- Returns:
- a reference to this object so that method calls can be chained together.
-
-