|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
ValueTypeIndexedMap()
Constructor. |
|
ValueTypeIndexedMap(java.util.Collection<java.lang.Class> newTypes)
Constructor. |
|
ValueTypeIndexedMap(java.util.Map<KeyType,ValueType> newMap,
java.util.Collection<java.lang.Class> newTypes)
Constructor. |
Method Summary | ||
---|---|---|
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)
|
|
java.util.Set<java.lang.Class> |
getTypes()
Get the value types that are indexed. |
|
boolean |
isEmpty()
|
|
java.util.Set<KeyType> |
keySet()
|
|
ValueType |
put(KeyType key,
ValueType value)
|
|
void |
putAll(java.util.Map<? extends KeyType,? extends ValueType> t)
|
|
void |
rebuildIndex()
Rebuild internal index. |
|
ValueType |
remove(java.lang.Object key)
|
|
void |
setTypes(java.util.Collection<java.lang.Class> newTypes)
Set which value types are indexed. |
|
int |
size()
|
|
|
subMap(java.lang.Class<SubType> type)
Returns an unmodifiable map of the entries whose value is of the specified type. |
|
java.lang.String |
toString()
|
|
java.util.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(java.util.Map<KeyType,ValueType> newMap, java.util.Collection<java.lang.Class> newTypes)
newMap
- existing map to build from.newTypes
- collection of value types to indexpublic ValueTypeIndexedMap(java.util.Collection<java.lang.Class> newTypes)
newTypes
- collection of value types to indexMethod 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 java.util.Set<java.lang.Class> getTypes()
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> t)
putAll
in interface java.util.Map<KeyType,ValueType>
public void rebuildIndex()
public ValueType remove(java.lang.Object key)
remove
in interface java.util.Map<KeyType,ValueType>
public void setTypes(java.util.Collection<java.lang.Class> newTypes)
newTypes
- which value types are indexedpublic int size()
size
in interface java.util.Map<KeyType,ValueType>
public <SubType extends ValueType> java.util.Map<KeyType,SubType> subMap(java.lang.Class<SubType> type)
SubType
- type of values to include in the returned maptype
- type of values to return
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Collection<ValueType> values()
values
in interface java.util.Map<KeyType,ValueType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |