Class SymbolCache

java.lang.Object
com.semedy.reasoner.symboltable.SymbolCache

public class SymbolCache extends Object
A cache for symbols
It consists of n units which may be released by cache manager.
Author:
angele
  • Constructor Details

    • SymbolCache

      public SymbolCache(int maxNumber)
    • SymbolCache

      public SymbolCache()
  • Method Details

    • put

      public Object put(long code, Object o)
      put new term with code
      Parameters:
      code -
      o -
      Returns:
    • clear

      public void clear()
      clear all
    • get

      public Object get(long code)
      get term for its code
      Parameters:
      code -
      Returns:
    • isEmpty

      public boolean isEmpty()
      are any terms cached?
      Returns:
    • remove

      public Object remove(Object Code)
      remove a term with code
      Parameters:
      Code -
      Returns:
    • remove

      public Object remove(long code)
      remove a term with code
      Parameters:
      code -
      Returns:
    • size

      public int size()
      number of terms cached
      Returns: