public abstract class InterningManager<E>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
InterningManager.Entry<E>
The entry for the hash map.
|
| Modifier and Type | Field and Description |
|---|---|
protected static double |
LOAD_FACTOR |
protected InterningManager.Entry<E>[] |
m_entries |
protected java.lang.ref.ReferenceQueue<E> |
m_referenceQueue |
protected int |
m_resizeThreshold |
protected int |
m_size |
| Constructor and Description |
|---|
InterningManager() |
| Modifier and Type | Method and Description |
|---|---|
protected InterningManager.Entry<E>[] |
createEntries(int size) |
protected abstract boolean |
equal(E object1,
E object2) |
protected abstract int |
getHashCode(E object) |
protected int |
getIndexFor(int hashCode,
int entriesLength) |
E |
intern(E object) |
protected void |
processQueue() |
protected void |
removeEntry(InterningManager.Entry<E> entry) |
protected static final double LOAD_FACTOR
protected final java.lang.ref.ReferenceQueue<E> m_referenceQueue
protected InterningManager.Entry<E>[] m_entries
protected int m_size
protected int m_resizeThreshold
protected final int getIndexFor(int hashCode,
int entriesLength)
protected void removeEntry(InterningManager.Entry<E> entry)
protected void processQueue()
protected final InterningManager.Entry<E>[] createEntries(int size)
protected abstract int getHashCode(E object)