ListDelegate

A TimedStorage implementation that delegates to a List.

Since

2.0.0

Parameters

list

the backing list

<T>

the type of element

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
@NonNull
open fun get(index: Int): @NonNull T
Retrieves the element at the specified index.
Link copied to clipboard
@NonNull
open fun getLast(): @NonNull T
Retrieves the last element in the storage.
Link copied to clipboard
abstract fun hashCode(): Int
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
open fun size(): Int
Returns the number of elements in the storage.
Link copied to clipboard
abstract fun toString(): String