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