ParsingLoadable.Builder


public final class ParsingLoadable.Builder<T>


Builder for ParsingLoadable.

Summary

Public constructors

Builder(
    DataSource dataSource,
    DataSpec dataSpec,
    @C.DataType int type,
    ParsingLoadable.Parser<T> parser
)

Creates a builder.

Builder(
    DataSource dataSource,
    Uri uri,
    @C.DataType int type,
    ParsingLoadable.Parser<T> parser
)

Creates a builder.

Public methods

ParsingLoadable<T>

Builds the ParsingLoadable.

ParsingLoadable.Builder<T>

Sets the steeredPathwayId, the default is null.

Public constructors

Builder

public Builder(
    DataSource dataSource,
    DataSpec dataSpec,
    @C.DataType int type,
    ParsingLoadable.Parser<T> parser
)

Creates a builder.

Parameters
DataSource dataSource

A DataSource to use when loading the data.

DataSpec dataSpec

The DataSpec from which the object should be loaded.

@C.DataType int type

The type of the data.

ParsingLoadable.Parser<T> parser

Parses the object from the response.

Builder

public Builder(
    DataSource dataSource,
    Uri uri,
    @C.DataType int type,
    ParsingLoadable.Parser<T> parser
)

Creates a builder.

Parameters
DataSource dataSource

A DataSource to use when loading the data.

Uri uri

The Uri from which the object should be loaded.

@C.DataType int type

The type of the data.

ParsingLoadable.Parser<T> parser

Parses the object from the response.

Public methods

build

public ParsingLoadable<T> build()

Builds the ParsingLoadable.

setSteeredPathwayId

@CanIgnoreReturnValue
public ParsingLoadable.Builder<T> setSteeredPathwayId(@Nullable String steeredPathwayId)

Sets the steeredPathwayId, the default is null.

Parameters
@Nullable String steeredPathwayId

See steeredPathwayId.

Returns
ParsingLoadable.Builder<T>

This builder.