ResourceLoader

floodsim.view.util.resource.ResourceLoader
trait ResourceLoader[K, A]

Type class for loading a value A given a key K. Implementations should be pure with respect to K and return deterministic LoadResult values for the same key (to benefit from caching).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def load(key: K): LoadResult[A]

Loads a resource addressed by key, returning either a value or an error.

Loads a resource addressed by key, returning either a value or an error.

Attributes