|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.util.ValueTypeIndexedMap<KeyType,ValueType>
KeyType
- the type of object used as keysValueType
- the type of object stored as valuespublic class ValueTypeIndexedMap<KeyType,ValueType>
Map implementation which allows subsets of entries to be retrieved based on the type of the entry value.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
ValueTypeIndexedMap()
Constructor. |
|
ValueTypeIndexedMap(Collection<Class> newTypes)
Constructor. |
|
ValueTypeIndexedMap(Map<KeyType,ValueType> newMap,
Collection<Class> newTypes)
Constructor. |
Method Summary | ||
---|---|---|
void |
clear()
|
|
boolean |
containsKey(Object key)
|
|
boolean |
containsValue(Object value)
|
|
Set<Map.Entry<KeyType,ValueType>> |
entrySet()
|
|
ValueType |
get(Object key)
|
|
Set<Class> |
getTypes()
Get the value types that are indexed. |
|
boolean |
isEmpty()
|
|
Set<KeyType> |
keySet()
|
|
ValueType |
put(KeyType key,
ValueType value)
|
|
void |
putAll(Map<? extends KeyType,? extends ValueType> t)
|
|
void |
rebuildIndex()
Rebuild internal index. |
|
ValueType |
remove(Object key)
|
|
void |
setTypes(Collection<Class> newTypes)
Set which value types are indexed. |
|
int |
size()
|
|
|
subMap(Class<SubType> type)
Returns an unmodifiable map of the entries whose value is of the specified type. |
|
String |
toString()
|
|
Collection<ValueType> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public ValueTypeIndexedMap()
public ValueTypeIndexedMap(Map<KeyType,ValueType> newMap, Collection<Class> newTypes)
newMap
- existing map to build from.newTypes
- collection of value types to indexpublic ValueTypeIndexedMap(Collection<Class> newTypes)
newTypes
- collection of value types to indexMethod 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 Set<Class> getTypes()
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 void rebuildIndex()
public ValueType remove(Object key)
remove
in interface Map<KeyType,ValueType>
public void setTypes(Collection<Class> newTypes)
newTypes
- which value types are indexedpublic int size()
size
in interface Map<KeyType,ValueType>
public <SubType extends ValueType> Map<KeyType,SubType> subMap(Class<SubType> type)
SubType
- type of values to include in the returned maptype
- type of values to return
public String toString()
toString
in class Object
public Collection<ValueType> values()
values
in interface Map<KeyType,ValueType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |