TimelineBuilders.TimeInterval

public final class TimelineBuilders.TimeInterval


A time interval, typically used to describe the validity period of a TimelineEntry.

Summary

Public methods

static @NonNull TimelineBuilders.TimeInterval.Builder

Returns a new Builder.

@NonNull long

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

@NonNull long

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

Public methods

builder

@NonNull
public static TimelineBuilders.TimeInterval.Builder builder()

Returns a new Builder.

getEndMillis

@NonNull
public long getEndMillis()

Gets end point of the time interval, in milliseconds since the Unix epoch. Intended for testing purposes only.

getStartMillis

@NonNull
public long getStartMillis()

Gets starting point of the time interval, in milliseconds since the Unix epoch. Intended for testing purposes only.