public class ModelCache
extends java.lang.Object
Constructor and Description |
---|
ModelCache() |
Modifier and Type | Method and Description |
---|---|
ServerModel |
getModel(java.lang.String id)
Get model from cache
|
void |
loadModel(ServerModel sm,
java.lang.String id)
Load the given model into cache
|
void |
remove(java.lang.String id) |
public void loadModel(ServerModel sm, java.lang.String id)
hm
- the modelid
- the id this model is referred bypublic ServerModel getModel(java.lang.String id)
id
- the idpublic void remove(java.lang.String id)