Package com.semedy.reasoner.utils
Class TupleCache<T>
java.lang.Object
com.semedy.reasoner.utils.TupleCache<T>
A cache for objects
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 Summary
-
Method Summary
-
Constructor Details
-
TupleCache
public TupleCache(int maxNumber) -
TupleCache
public TupleCache()
-
-
Method Details
-
put
put new tuple- Parameters:
t
- , tuple tcode
- , code to add
-
clear
public void clear()clear all -
get
get term list for this tuple- Parameters:
t
- , tuple- Returns:
-
isEmpty
public boolean isEmpty()are any terms cached?- Returns:
-
remove
remove a term with code- Parameters:
t
- , tuple- Returns:
-
size
public int size()number of terms cached- Returns:
-