Interface CompletedDownload.UntypedBuilder
- Enclosing class:
- CompletedDownload<ResultT>
public static interface CompletedDownload.UntypedBuilder
Initial calls to
CompletedDownload.builder() return an CompletedDownload.UntypedBuilder, where the builder is not yet
parameterized with the generic type associated with CompletedDownload. 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 the result(Object) parameter, at which point the builder
chain will return a new CompletedDownload.TypedBuilder.-
Method Summary
Modifier and TypeMethodDescriptionresult(T result) Specifies the result of the completed download.
-
Method Details
-
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.
-