Class FastIteratingContainer

java.lang.Object
org.castor.cache.hashbelt.container.FastIteratingContainer
All Implemented Interfaces:
Map<Object,Object>, Container

public final class FastIteratingContainer extends Object implements Container
The FastIteratingContainer implementation of the Container interface assuems two things:
  • Puts and removes are rare in proportion to gets and iteration are common. Put and remove are much more expensive here than in MapContainer.
  • Keys will not be reused (using a key twice with different values implicitly does an expensive remove).
In order for allow for removes and adds to be called while an iterator is in use, iterator-responses use cloned key/value lists.
Since:
1.0
Version:
$Revision: 8102 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Gregory Block, Ralf Joachim