Storage

interface Storage<T : Any>

Interface to persist and retrieve objects.

Parameters

T

The type of object to be stored.

Inheritors

Functions

Link copied to clipboard
abstract fun delete()

Delete an item from the storage.

Link copied to clipboard
abstract fun get(): T?

Retrieve an item from the storage.

Link copied to clipboard
abstract fun save(item: T)

Save an item to the storage.