PreviewProgram.Builder
public final class PreviewProgram.Builder
This Builder class simplifies the creation of a PreviewProgram object.
Summary
Public constructors |
|---|
Builder()Creates a new Builder object. |
Builder(PreviewProgram other)Creates a new Builder object with values copied from another Program. |
Public methods |
|
|---|---|
PreviewProgram |
build() |
PreviewProgram.Builder |
setChannelId(long channelId)Sets the ID of the |
PreviewProgram.Builder |
setWeight(int weight)Sets the weight of the preview program within the channel. |
Public constructors
Builder
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
public PreviewProgram build()
| Returns | |
|---|---|
PreviewProgram |
A new Program with values supplied by the Builder. |
setChannelId
public PreviewProgram.Builder setChannelId(long channelId)
Sets the ID of the Channel that contains this program.
| Parameters | |
|---|---|
long channelId |
The value of |
setWeight
public PreviewProgram.Builder setWeight(int weight)
Sets the weight of the preview program within the channel.
| Parameters | |
|---|---|
int weight |
The value of |
| Returns | |
|---|---|
PreviewProgram.Builder |
This Builder object to allow for chaining of calls to builder methods. |