|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
LazyMap()
|
Method Summary | |
---|---|
protected java.util.Map<KeyType,ValueType> |
buildMap()
Builds an appropriate delegate map. |
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set<java.util.Map.Entry<KeyType,ValueType>> |
entrySet()
|
ValueType |
get(java.lang.Object key)
|
boolean |
isEmpty()
|
java.util.Set<KeyType> |
keySet()
|
ValueType |
put(KeyType key,
ValueType value)
|
void |
putAll(java.util.Map<? extends KeyType,? extends ValueType> map)
|
ValueType |
remove(java.lang.Object key)
|
int |
size()
|
java.util.Collection<ValueType> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public LazyMap()
Method Detail |
---|
public void clear()
clear
in interface java.util.Map<KeyType,ValueType>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<KeyType,ValueType>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<KeyType,ValueType>
public java.util.Set<java.util.Map.Entry<KeyType,ValueType>> entrySet()
entrySet
in interface java.util.Map<KeyType,ValueType>
public ValueType get(java.lang.Object key)
get
in interface java.util.Map<KeyType,ValueType>
public boolean isEmpty()
isEmpty
in interface java.util.Map<KeyType,ValueType>
public java.util.Set<KeyType> keySet()
keySet
in interface java.util.Map<KeyType,ValueType>
public ValueType put(KeyType key, ValueType value)
put
in interface java.util.Map<KeyType,ValueType>
public void putAll(java.util.Map<? extends KeyType,? extends ValueType> map)
putAll
in interface java.util.Map<KeyType,ValueType>
public ValueType remove(java.lang.Object key)
remove
in interface java.util.Map<KeyType,ValueType>
public int size()
size
in interface java.util.Map<KeyType,ValueType>
public java.util.Collection<ValueType> values()
values
in interface java.util.Map<KeyType,ValueType>
protected java.util.Map<KeyType,ValueType> buildMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |