|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.util.LazyMap<KeyType,ValueType>
KeyType
- the type of the map keysValueType
- the type of the map values@NotThreadSafe public class LazyMap<KeyType,ValueType>
A map that is lazy initialized. This map takes very little memory when storing zero or one item.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary | |
---|---|
private Map<KeyType,ValueType> |
delegate
The delegate map. |
private static long |
serialVersionUID
Serial version UID. |
Constructor Summary | |
---|---|
LazyMap()
|
Method Summary | |
---|---|
protected Map<KeyType,ValueType> |
buildMap()
Builds an appropriate delegate map. |
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<KeyType,ValueType>> |
entrySet()
|
boolean |
equals(Object obj)
|
ValueType |
get(Object key)
|
int |
hashCode()
|
boolean |
isEmpty()
|
Set<KeyType> |
keySet()
|
ValueType |
put(KeyType key,
ValueType value)
|
void |
putAll(Map<? extends KeyType,? extends ValueType> t)
|
ValueType |
remove(Object key)
|
int |
size()
|
String |
toString()
|
Collection<ValueType> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private Map<KeyType,ValueType> delegate
Constructor Detail |
---|
public LazyMap()
Method Detail |
---|
public void clear()
clear
in interface Map<KeyType,ValueType>
public boolean containsKey(Object key)
containsKey
in interface Map<KeyType,ValueType>
public boolean containsValue(Object value)
containsValue
in interface Map<KeyType,ValueType>
public Set<Map.Entry<KeyType,ValueType>> entrySet()
entrySet
in interface Map<KeyType,ValueType>
public ValueType get(Object key)
get
in interface Map<KeyType,ValueType>
public boolean isEmpty()
isEmpty
in interface Map<KeyType,ValueType>
public Set<KeyType> keySet()
keySet
in interface Map<KeyType,ValueType>
public ValueType put(KeyType key, ValueType value)
put
in interface Map<KeyType,ValueType>
public void putAll(Map<? extends KeyType,? extends ValueType> t)
putAll
in interface Map<KeyType,ValueType>
public ValueType remove(Object key)
remove
in interface Map<KeyType,ValueType>
public int size()
size
in interface Map<KeyType,ValueType>
public Collection<ValueType> values()
values
in interface Map<KeyType,ValueType>
protected Map<KeyType,ValueType> buildMap()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in interface Map<KeyType,ValueType>
hashCode
in class Object
public boolean equals(Object obj)
equals
in interface Map<KeyType,ValueType>
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |