Package org.evrete.api
Interface FactStorage<T>
-
- All Superinterfaces:
Iterable<FactStorage.Entry<T>>,ReIterable<FactStorage.Entry<T>>
public interface FactStorage<T> extends ReIterable<FactStorage.Entry<T>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceFactStorage.Entry<Z>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()voiddelete(FactHandle handle)TgetFact(FactHandle handle)FactHandleinsert(T fact)Creates and returns new FactHandle for each inserted fact.voidupdate(FactHandle handle, T newInstance)-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface org.evrete.api.ReIterable
iterator, iterator
-
-
-
-
Method Detail
-
insert
FactHandle insert(T fact)
Creates and returns new FactHandle for each inserted fact. The contract is that the implementation must return
nullif object is already known and not deleted.- Parameters:
fact- the fact being inserted in the working memory- Returns:
- null if object has been already inserted or a new FactHandle otherwise
-
delete
void delete(FactHandle handle)
-
update
void update(FactHandle handle, T newInstance)
-
getFact
T getFact(FactHandle handle)
-
clear
void clear()
-
-