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.,
 CompletedDownload.<ResponseBytes<GetObjectResponse>>builder()
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 Type
    Method
    Description
    result(T result)
    Specifies the result of the completed download.
  • Method Details