屯昌120名孤寡老人、贫困户和环卫工等共享爱心...

百度 本周,京城气温将经历一个“先扬后抑”的过程,周一至周三最高温为25℃-26℃,周四至周日则降至18℃-21℃。

public final class Batch.Builder


Builder for Batch objects. Note that this class is not thread-safe, by design.

Summary

Public constructors

Builder(GoogleApiClient googleApiClient)

Public methods

BatchResultToken<R>
<R extends Result> add(PendingResult<R> pendingResult)

Adds a PendingResult to the batch.

Batch

Public constructors

Builder

public Builder(GoogleApiClient googleApiClient)

Public methods

add

public BatchResultToken<R> <R extends Result> add(PendingResult<R> pendingResult)

Adds a PendingResult to the batch. The returned token can be used to retrieve the result from the BatchResult passed to the result callback.

Parameters
PendingResult<R> pendingResult

Items to wait for completion of.

Returns
BatchResultToken<R>

The result token to use to get the result from the BatchResult.

build

public Batch build()