public class TextRendererCache extends Object implements Disposable
Modifier and Type | Class and Description |
---|---|
static class |
TextRendererCache.CacheKey |
Modifier and Type | Field and Description |
---|---|
protected ConcurrentHashMap<Object,TextRenderer> |
textRendererMap |
Constructor and Description |
---|
TextRendererCache() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
contains(Object key) |
void |
dispose()
Disposes of any internal resources allocated by the object.
|
protected void |
dispose(TextRenderer textRenderer) |
protected void |
disposeAll() |
TextRenderer |
get(Object key) |
int |
getNumObjects() |
void |
put(Object key,
TextRenderer textRenderer) |
void |
remove(Object key) |
protected ConcurrentHashMap<Object,TextRenderer> textRendererMap
public void clear()
public boolean contains(Object key)
public void dispose()
Disposable
dispose
in interface Disposable
protected void dispose(TextRenderer textRenderer)
protected void disposeAll()
public TextRenderer get(Object key)
public int getNumObjects()
public void put(Object key, TextRenderer textRenderer)
public void remove(Object key)