Chapter.Builder


public class Chapter.Builder


Builder for Chapter instances.

Summary

Public constructors

Constructs an instance.

Public methods

Chapter

Builds a Chapter instance with the provided values.

Chapter.Builder

Sets the end time of the chapter, or TIME_UNSET if not known.

Chapter.Builder
@CanIgnoreReturnValue
setHidden(boolean isHidden)

Sets whether the chapter is hidden.

Chapter.Builder

Sets the start time of the chapter, or TIME_UNSET if not known.

Chapter.Builder

Sets the title of this chapter, or null if not known.

Public constructors

Builder

public Builder()

Constructs an instance.

Public methods

build

public Chapter build()

Builds a Chapter instance with the provided values.

setEndTimeMs

@CanIgnoreReturnValue
public Chapter.Builder setEndTimeMs(long endTimeMs)

Sets the end time of the chapter, or TIME_UNSET if not known.

Defaults to TIME_UNSET.

See also
getEndTimeMs

setHidden

@CanIgnoreReturnValue
public Chapter.Builder setHidden(boolean isHidden)

Sets whether the chapter is hidden.

Defaults to false.

See also
isHidden

setStartTimeMs

@CanIgnoreReturnValue
public Chapter.Builder setStartTimeMs(long startTimeMs)

Sets the start time of the chapter, or TIME_UNSET if not known.

Defaults to TIME_UNSET.

See also
getStartTimeMs

setTitle

@CanIgnoreReturnValue
public Chapter.Builder setTitle(@Nullable Label title)

Sets the title of this chapter, or null if not known.

Defaults to null.

See also
getTitle