public static interface CompletedDownload.UntypedBuilder
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.| Modifier and Type | Method and Description |
|---|---|
<T> CompletedDownload.TypedBuilder<T> |
result(T result)
Specifies the result of the completed download.
|
<T> CompletedDownload.TypedBuilder<T> result(T result)
CompletedDownload
to create.T - the type of CompletedDownload to createresult - the result of the completed download, as transformed by an AsyncResponseTransformerCopyright © 2023. All rights reserved.