org.semanticweb.HermiT.tableau
Class SetFactory<E>

java.lang.Object
  extended by org.semanticweb.HermiT.tableau.SetFactory<E>
All Implemented Interfaces:
java.io.Serializable

 class SetFactory<E>
extends java.lang.Object
implements java.io.Serializable


Nested Class Summary
protected static class SetFactory.Entry<T>
           
 
Field Summary
protected  SetFactory.Entry<E> m_emptySet
           
protected  SetFactory.Entry[] m_entries
           
protected  int m_resizeThreshold
           
protected  int m_size
           
protected  SetFactory.Entry[] m_unusedEntries
           
private static long serialVersionUID
           
 
Constructor Summary
SetFactory()
           
 
Method Summary
 void addReference(java.util.Set<E> set)
           
 java.util.Set<E> emptySet()
           
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)
           
protected  void removeEntry(SetFactory.Entry<E> entry)
           
 void removeReference(java.util.Set<E> set)
           
protected  void resize()
           
 int sizeInMemory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

m_emptySet

protected final SetFactory.Entry<E> m_emptySet

m_unusedEntries

protected SetFactory.Entry[] m_unusedEntries

m_entries

protected SetFactory.Entry[] m_entries

m_size

protected int m_size

m_resizeThreshold

protected int m_resizeThreshold
Constructor Detail

SetFactory

public SetFactory()
Method Detail

sizeInMemory

public int sizeInMemory()

addReference

public void addReference(java.util.Set<E> set)

removeReference

public void removeReference(java.util.Set<E> set)

emptySet

public java.util.Set<E> emptySet()

getSet

public java.util.Set<E> getSet(java.util.List<E> elements)

resize

protected void resize()

removeEntry

protected void removeEntry(SetFactory.Entry<E> entry)

getEntry

protected SetFactory.Entry<E> getEntry(int size)

leaveEntry

protected void leaveEntry(SetFactory.Entry<E> entry)

getIndexFor

protected static int getIndexFor(int hashCode,
                                 int tableLength)