TimelineBuilders.TimeInterval


@RequiresSchemaVersion(major = 1, minor = 0)
public final class TimelineBuilders.TimeInterval


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

Summary

Nested types

Builder for TimeInterval

Public methods

long

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

long

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

@NonNull String

Public methods

getEndMillis

Added in 1.0.0
public long getEndMillis()

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

getStartMillis

Added in 1.0.0
public long getStartMillis()

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

toString

public @NonNull String toString()