TimelineBuilders.TimeInterval.Builder


public final class TimelineBuilders.TimeInterval.Builder


Builder for TimeInterval

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull TimelineBuilders.TimeInterval

Builds an instance from accumulated values.

@NonNull TimelineBuilders.TimeInterval.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setEndMillis(long endMillis)

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

@NonNull TimelineBuilders.TimeInterval.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setStartMillis(long startMillis)

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

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull TimelineBuilders.TimeInterval build()

Builds an instance from accumulated values.

setEndMillis

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull TimelineBuilders.TimeInterval.Builder setEndMillis(long endMillis)

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

setStartMillis

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull TimelineBuilders.TimeInterval.Builder setStartMillis(long startMillis)

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