TimelineBuilders.TimeInterval.Builder

public final class TimelineBuilders.TimeInterval.Builder


Builder for TimeInterval

Summary

Public methods

@NonNull TimelineBuilders.TimeInterval

Builds an instance from accumulated values.

@NonNull TimelineBuilders.TimeInterval.Builder
setEndMillis(@NonNull long endMillis)

Sets end point of the time interval, in milliseconds since the Unix epoch.

@NonNull TimelineBuilders.TimeInterval.Builder
setStartMillis(@NonNull long startMillis)

Sets starting point of the time interval, in milliseconds since the Unix epoch.

Public methods

build

@NonNull
public TimelineBuilders.TimeInterval build()

Builds an instance from accumulated values.

setEndMillis

@NonNull
public TimelineBuilders.TimeInterval.Builder setEndMillis(@NonNull long endMillis)

Sets end point of the time interval, in milliseconds since the Unix epoch.

setStartMillis

@NonNull
public TimelineBuilders.TimeInterval.Builder setStartMillis(@NonNull long startMillis)

Sets starting point of the time interval, in milliseconds since the Unix epoch.