A
- Some Model type that implements Object.equals(java.lang.Object)
and Object.hashCode()
.B
- Some useful type that may be expensive to create (URL, file path, etc).public class ModelCache<A,B> extends Object
ModelLoader
and ModelLoaderFactory
to cache some data for a given
model, width and height. For a loader that takes a model and returns a url, the cache could be used to safely memoize
url creation based on the width and height of the view.Constructor and Description |
---|
ModelCache() |
ModelCache(int size) |