org.castor.cache.hashbelt.container
Class FastIteratingContainer
java.lang.Object
org.castor.cache.hashbelt.container.FastIteratingContainer
- Container, Map
public final class FastIteratingContainer
extends java.lang.Object
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.
$Revision: 6907 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
containsKey
public boolean containsKey(Object key)
java.util.Map.containsKey(java.lang.Object)
containsValue
public boolean containsValue(Object value)
java.util.Map.containsValue(java.lang.Object)
entrySet
public Set entrySet()
get
public Object get(Object key)
java.util.Map.get(java.lang.Object)
isEmpty
public boolean isEmpty()
keySet
public Set keySet()
put
public Object put(Object key,
Object value)
java.util.Map.put(java.lang.Object, java.lang.Object)
putAll
public void putAll(Map map)
java.util.Map.putAll(java.util.Map)
remove
public Object remove(Object key)
java.util.Map.remove(java.lang.Object)
values
public Collection values()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com