public final class TimelineEntry


One piece of renderable content along with the time that it is valid for.

Summary

Public constructors

TimelineEntry(
    @NonNull TimeInterval validity,
    @NonNull ComplicationData complicationData
)

Public methods

boolean
equals(Object other)
final @NonNull ComplicationData

The renderable ComplicationData.

final @NonNull TimeInterval

TimeInterval describing the validity period for this timeline entry.

int
final void
final void
@NonNull String

Public constructors

TimelineEntry

Added in 1.1.0
public TimelineEntry(
    @NonNull TimeInterval validity,
    @NonNull ComplicationData complicationData
)
Parameters
@NonNull TimeInterval validity

TimeInterval describing the validity period for this timeline entry.

@NonNull ComplicationData complicationData

The renderable ComplicationData.

Public methods

equals

public boolean equals(Object other)

getComplicationData

Added in 1.1.0
public final @NonNull ComplicationData getComplicationData()

The renderable ComplicationData.

getValidity

Added in 1.1.0
public final @NonNull TimeInterval getValidity()

TimeInterval describing the validity period for this timeline entry.

hashCode

public int hashCode()

setComplicationData

Added in 1.1.0
public final void setComplicationData(@NonNull ComplicationData complicationData)
Parameters
@NonNull ComplicationData complicationData

The renderable ComplicationData.

setValidity

Added in 1.1.0
public final void setValidity(@NonNull TimeInterval validity)
Parameters
@NonNull TimeInterval validity

TimeInterval describing the validity period for this timeline entry.

toString

public @NonNull String toString()