TimelineBuilders.TimelineEntry

Added in 1.0.0
Deprecated in 1.2.0

public final class TimelineBuilders.TimelineEntry


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

Summary

Nested types

Builder for TimelineEntry

Public methods

static @NonNull TimelineBuilders.TimelineEntry

Returns the TimelineEntry object containing the given layout element.

@Nullable LayoutElementBuilders.Layout

Gets the contents of this timeline entry.

@Nullable TimelineBuilders.TimeInterval

Gets the validity period for this timeline entry.

Public methods

fromLayoutElement

Added in 1.1.0
Deprecated in 1.2.0
public static @NonNull TimelineBuilders.TimelineEntry fromLayoutElement(
    @NonNull LayoutElementBuilders.LayoutElement layoutElement
)

Returns the TimelineEntry object containing the given layout element.

getLayout

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable LayoutElementBuilders.Layout getLayout()

Gets the contents of this timeline entry. Intended for testing purposes only.

getValidity

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable TimelineBuilders.TimeInterval getValidity()

Gets the validity period for this timeline entry. Intended for testing purposes only.