ResultStorage

interface ResultStorage<T>

Stores and provides access to the scanning result of the given type by ResultId

Inheritors

Properties

Link copied to clipboard
abstract val acceptedType: Class<T>

Each result repository works with a single class.

Functions

Link copied to clipboard
abstract fun clear()

Removes all the results from the storage

Link copied to clipboard
abstract fun getResult(resultId: String): T?

Returns the result from the storage according to the given id

Link copied to clipboard
abstract fun putResult(resultId: String, result: T)

Puts the given result to the storage on the given id

Link copied to clipboard
abstract fun removeResult(resultId: String)

Removes the result from the storage according to the given id