TimedStorage

interface TimedStorage<T : Timed?>

A read-only storage for timed elements (keyframes), allowing indexed access.

This interface abstracts the underlying data structure (e.g., List, Array) used to store animation frames.

Since

2.0.0

Parameters

<T>

the type of timed element

Inheritors

Types

Link copied to clipboard
A TimedStorage implementation that delegates to a List.

Functions

Link copied to clipboard
@NotNull
abstract fun get(index: Int): @NotNull T
Retrieves the element at the specified index.
Link copied to clipboard
@NotNull
abstract fun getLast(): @NotNull T
Retrieves the last element in the storage.
Link copied to clipboard
@NotNull
open fun <T : Timed?> listOf(@NotNull list: @NotNull List<T>): @NotNull TimedStorage<T>
Creates a TimedStorage backed by a List.
Link copied to clipboard
abstract fun size(): Int
Returns the number of elements in the storage.