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.Serializable
LazyMap. 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>
delegate
The delegate mapprivate static long
serialVersionUID
The serialVersionUID
-
Constructor Summary
Constructors Constructor Description LazyMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
private java.util.Map<K,V>
createImplementation()
Create the map implementationjava.util.Set<java.util.Map.Entry<K,V>>
entrySet()
V
get(java.lang.Object key)
boolean
isEmpty()
java.util.Set<K>
keySet()
V
put(K key, V value)
void
putAll(java.util.Map<? extends K,? extends V> t)
V
remove(java.lang.Object key)
int
size()
java.lang.String
toString()
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:
toString
in classjava.lang.Object
-
-