public class SetFactory<E>
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SetFactory.Entry<T> |
| Modifier and Type | Field and Description |
|---|---|
protected SetFactory.Entry[] |
m_entries |
protected int |
m_resizeThreshold |
protected int |
m_size |
protected SetFactory.Entry[] |
m_unusedEntries |
| Constructor and Description |
|---|
SetFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addReference(java.util.Set<E> set) |
void |
clearNonpermanent() |
protected SetFactory.Entry<E> |
getEntry(int size) |
protected static int |
getIndexFor(int hashCode,
int tableLength) |
java.util.Set<E> |
getSet(java.util.List<E> elements) |
protected void |
leaveEntry(SetFactory.Entry<E> entry) |
void |
makePermanent(java.util.Set<E> set) |
protected void |
removeEntry(SetFactory.Entry<E> entry) |
void |
removeReference(java.util.Set<E> set) |
protected void |
resize() |
int |
sizeInMemory() |
protected SetFactory.Entry[] m_unusedEntries
protected SetFactory.Entry[] m_entries
protected int m_size
protected int m_resizeThreshold
public void clearNonpermanent()
public int sizeInMemory()
public void addReference(java.util.Set<E> set)
public void removeReference(java.util.Set<E> set)
public void makePermanent(java.util.Set<E> set)
protected void resize()
protected void removeEntry(SetFactory.Entry<E> entry)
protected SetFactory.Entry<E> getEntry(int size)
protected void leaveEntry(SetFactory.Entry<E> entry)
protected static int getIndexFor(int hashCode,
int tableLength)