PreviewProgram.Builder


public final class PreviewProgram.Builder


This Builder class simplifies the creation of a PreviewProgram object.

Summary

Public constructors

Creates a new Builder object.

Creates a new Builder object with values copied from another Program.

Public methods

PreviewProgram
PreviewProgram.Builder
setChannelId(long channelId)

Sets the ID of the Channel that contains this program.

PreviewProgram.Builder
setWeight(int weight)

Sets the weight of the preview program within the channel.

Public constructors

Builder

Added in 1.1.0-alpha02
public Builder()

Creates a new Builder object.

Builder

Added in 1.1.0-alpha02
public Builder(PreviewProgram other)

Creates a new Builder object with values copied from another Program.

Parameters
PreviewProgram other

The Program you're copying from.

Public methods

build

Added in 1.1.0-alpha02
public PreviewProgram build()
Returns
PreviewProgram

A new Program with values supplied by the Builder.

setChannelId

Added in 1.1.0-alpha02
public PreviewProgram.Builder setChannelId(long channelId)

Sets the ID of the Channel that contains this program.

setWeight

Added in 1.1.0-alpha02
public PreviewProgram.Builder setWeight(int weight)

Sets the weight of the preview program within the channel.

Parameters
int weight

The value of COLUMN_WEIGHT for the program.

Returns
PreviewProgram.Builder

This Builder object to allow for chaining of calls to builder methods.