Package org.jboss.util.collection
Class LazyMap<K,V>
- java.lang.Object
-
- org.jboss.util.collection.LazyMap<K,V>
-
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
java.io.Serializable,java.util.Map<K,V>
public class LazyMap<K,V> extends java.lang.Object implements java.util.Map<K,V>, java.io.SerializableLazyMap. It's serializable if the elements are serializable.- Version:
- $Revision$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<K,V>delegateThe delegate mapprivate static longserialVersionUIDThe serialVersionUID
-
Constructor Summary
Constructors Constructor Description LazyMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)private java.util.Map<K,V>createImplementation()Create the map implementationjava.util.Set<java.util.Map.Entry<K,V>>entrySet()Vget(java.lang.Object key)booleanisEmpty()java.util.Set<K>keySet()Vput(K key, V value)voidputAll(java.util.Map<? extends K,? extends V> t)Vremove(java.lang.Object key)intsize()java.lang.StringtoString()java.util.Collection<V>values()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
The serialVersionUID- See Also:
- Constant Field Values
-
-
Method Detail
-
createImplementation
private java.util.Map<K,V> createImplementation()
Create the map implementation- Returns:
- the map
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
values
public java.util.Collection<V> values()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-