Package com.semedy.reasoner.symboltable
Class SymbolCache
java.lang.Object
com.semedy.reasoner.symboltable.SymbolCache
A cache for symbols
It consists of n units which may be released by cache manager.
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
put new term with code- Parameters:
code
-o
-- Returns:
-
clear
public void clear()clear all -
get
get term for its code- Parameters:
code
-- Returns:
-
isEmpty
public boolean isEmpty()are any terms cached?- Returns:
-
remove
remove a term with code- Parameters:
Code
-- Returns:
-
remove
remove a term with code- Parameters:
code
-- Returns:
-
size
public int size()number of terms cached- Returns:
-