de.cesr.lara.components.container.memory
Interface LaraOverwriteMemory<PropertyType extends LaraProperty<PropertyType,?>>

Type Parameters:
PropertyType -
All Superinterfaces:
Iterable<PropertyType>, LaraCapacityManageableContainer<PropertyType>, LaraContainer<PropertyType>, LaraMemory<PropertyType>
All Known Implementing Classes:
LDefaultLimitedCapacityOverwriteBoMemory, LDefaultLimitedCapacityOverwriteMemory

public interface LaraOverwriteMemory<PropertyType extends LaraProperty<PropertyType,?>>
extends LaraMemory<PropertyType>, LaraCapacityManageableContainer<PropertyType>

Memorises only one property per key. I.e., there is no history.


Field Summary
 
Fields inherited from interface de.cesr.lara.components.container.memory.LaraMemory
UNLIMITED_RETENTION
 
Fields inherited from interface de.cesr.lara.components.container.LaraContainer
UNLIMITED_CAPACITY
 
Method Summary
 PropertyType forget(String key)
           
 Collection<PropertyType> forgetAll(Collection<PropertyType> propertiesToBeRemoved)
          Removes all properties in the specified collection from this memory.
 
Methods inherited from interface de.cesr.lara.components.container.memory.LaraMemory
addMemoryPropertyObserver, clear, contains, contains, contains, contains, contains, forget, forget, forgetAll, getAllPropertyKeys, getDefaultRetentionTime, getName, getRetentionTime, memorize, memorize, recall, recall, recall, recall, recallAll, recallAll, recallAll, refresh, refresh, refresh, refresh, refresh, removeMemoryPropertyObserver, setDefaultRetentionTime
 
Methods inherited from interface de.cesr.lara.components.container.LaraCapacityManageableContainer
getCapacityManagementView, getCapacityManager, setCapacity, setCapacityManager
 
Methods inherited from interface de.cesr.lara.components.container.LaraContainer
getCapacity, getSize, isEmpty, isFull
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

forget

PropertyType forget(String key)
                                                         throws LRemoveException
Parameters:
key -
Returns:
the property to forget
Throws:
LRemoveException

forgetAll

Collection<PropertyType> forgetAll(Collection<PropertyType> propertiesToBeRemoved)
                                                                        throws LRemoveException
Description copied from interface: LaraMemory
Removes all properties in the specified collection from this memory.

Specified by:
forgetAll in interface LaraMemory<PropertyType extends LaraProperty<PropertyType,?>>
Parameters:
propertiesToBeRemoved - the properties to be removed
Returns:
the properties that were forgotten
Throws:
LRemoveException
See Also:
LaraMemory.forgetAll(java.util.Collection)