T - The type of data associated with the tag.interface ModelCacheTag<T>
ModelCache. This interface basically aggregates a name
and a class to provide some type safety when working with the otherwise untyped cache.| Modifier and Type | Field and Description |
|---|---|
static ModelCacheTag<DependencyManagement> |
IMPORT
The tag used to denote an effective dependency management section from an imported model.
|
static ModelCacheTag<ModelData> |
RAW
The tag used to denote raw model data.
|
| Modifier and Type | Method and Description |
|---|---|
T |
fromCache(T data)
Creates a copy of the data suitable for retrieval from the cache.
|
java.lang.String |
getName()
Gets the name of the tag.
|
java.lang.Class<T> |
getType()
Gets the type of data associated with this tag.
|
T |
intoCache(T data)
Creates a copy of the data suitable for storage in the cache.
|
static final ModelCacheTag<ModelData> RAW
static final ModelCacheTag<DependencyManagement> IMPORT
java.lang.String getName()
null.java.lang.Class<T> getType()
null.T intoCache(T data)
data - The data to store in the cache, must not be null.null.T fromCache(T data)
data - The data to retrieve from the cache, must not be null.null.