Constructor and Description |
---|
BamCacheImpl() |
Modifier and Type | Method and Description |
---|---|
BlockAbstraction |
get(AbstractState stateKey,
Precision precisionKey,
SignatureT blockKey)
Gets the block abstraction identified by the provided keys from the cache.
|
java.util.Collection<BlockAbstraction> |
get(Precision precision,
SignatureT blockKey)
Returns a collection of all the cache entries for a specified method with a certain precision,
empty in case there are not such entries.
|
java.util.Collection<BlockAbstraction> |
get(SignatureT blockKey)
Returns a collection of all the cache entries for a specified method, empty in case there are
not such entries.
|
java.util.Set<SignatureT> |
getAllMethods()
Returns a set of all the methods that have an entry in the cache.
|
void |
put(AbstractState stateKey,
Precision precisionKey,
SignatureT blockKey,
BlockAbstraction blockAbstraction)
Adds the block abstraction identified by the provided keys to the cache.
|
int |
size()
Returns the size of the cache.
|
java.util.Collection<BlockAbstraction> |
values()
Returns block abstractions stored in the cache.
|
public void put(AbstractState stateKey, Precision precisionKey, SignatureT blockKey, BlockAbstraction blockAbstraction)
BamCache
put
in interface BamCache<SignatureT extends Signature>
public BlockAbstraction get(AbstractState stateKey, Precision precisionKey, SignatureT blockKey)
BamCache
get
in interface BamCache<SignatureT extends Signature>
public java.util.Collection<BlockAbstraction> get(SignatureT blockKey)
BamCache
get
in interface BamCache<SignatureT extends Signature>
public java.util.Collection<BlockAbstraction> get(Precision precision, SignatureT blockKey)
BamCache
get
in interface BamCache<SignatureT extends Signature>
public java.util.Collection<BlockAbstraction> values()
BamCache
values
in interface BamCache<SignatureT extends Signature>
public int size()
BamCache
size
in interface BamCache<SignatureT extends Signature>
public java.util.Set<SignatureT> getAllMethods()
BamCache
getAllMethods
in interface BamCache<SignatureT extends Signature>