floodsim.view.util.resource.Cache
See theCache companion trait
Companion object for Cache providing factory methods.
Attributes
-
Companion
-
trait
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Creates a preloaded cache with the specified keys. This method eagerly loads all resources for the given keys using the provided loader.
Creates a preloaded cache with the specified keys. This method eagerly loads all resources for the given keys using the provided loader.
Type parameters
-
A
-
the type of resources stored in the cache
-
K
-
the type of keys used to identify resources
Value parameters
-
keys
-
the collection of keys to preload
-
loader
-
the resource loader to use for loading resources
Attributes
-
Returns
-
a new Cache containing the preloaded resources