public interface FactStorage<T> extends ReIterable<FactStorage.Entry<T>>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
FactStorage.Entry<Z> |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
delete(FactHandle handle) |
T |
getFact(FactHandle handle) |
FactHandle |
insert(T fact)
Creates and returns new FactHandle for each inserted fact.
|
void |
update(FactHandle handle,
T newInstance) |
iterator, iteratorforEach, spliteratorFactHandle insert(T fact)
Creates and returns new FactHandle for each inserted fact. The contract is that the implementation must
return null if object is already known and not deleted.
fact - the fact being inserted in the working memoryvoid delete(FactHandle handle)
void update(FactHandle handle, T newInstance)
T getFact(FactHandle handle)
void clear()
Copyright © 2021. All rights reserved.