public class ClassMap
extends java.lang.Object
implements java.util.Map, java.io.Serializable
Double and there
is none contained in this map then ClassMap will look for a mapping of Number and eventually for
Object. If there is still nothing found null will be returned.| Constructor and Description |
|---|
ClassMap()
Creates a new, empty ClassMap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all mappings from this map.
|
boolean |
containsClass(java.lang.Class classKey)
Returns true if this map contains a mapping for the specified classkey.
|
boolean |
containsKey(java.lang.Object key)
Returns true if this map contains a mapping for the specified key.
|
boolean |
containsValue(java.lang.Object value)
Returns true if this map maps one or more keys to the specified value.
|
java.util.Set |
entrySet()
Returns a set view of the mappings contained in this map.
|
java.lang.Object |
get(java.lang.Object key)
Returns the value to which this map maps the specified key.
|
boolean |
isEmpty()
Returns true if this map contains no key-value mappings.
|
java.util.Set |
keySet()
Returns a set view of the keys contained in this map.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified key in this map.
|
void |
putAll(java.util.Map map)
Copies all of the mappings from the specified map to this map.
|
java.lang.Object |
remove(java.lang.Object key)
Removes the mapping for this key from this map if it is present.
|
int |
size()
Returns the number of key-value mappings in this map.
|
java.util.Collection |
values()
Returns a collection view of the values contained in this map.
|
public int size()
size in interface java.util.Mappublic void clear()
clear in interface java.util.Mappublic boolean isEmpty()
isEmpty in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mapkey - key whose presence in this map is to be testedpublic boolean containsClass(java.lang.Class classKey)
containsKey(),
this method will also return true if there is a mapping for one of the superclasses of classKey. Note: This
behaviour implies that this method will always be true as soon as there is a mapping for the class
Object in this map!classKey - class whose presence in this map is to be testedpublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mapvalue - value whose presence in this map is to be testedpublic java.util.Collection values()
values in interface java.util.Mappublic void putAll(java.util.Map map)
putAll in interface java.util.Mapmap - Mappings to be stored in this map.public java.util.Set entrySet()
entrySet in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.Mappublic java.lang.Object get(java.lang.Object key)
Object then this method will always return
return a non-null entry if you use an object of type Class as parameter.get in interface java.util.Mapkey - key whose associated value is to be returned (see comments above when using a Class object as key)public java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapkey - key whose mapping is to be removed from the mappublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapkey - key with which the specified value is to be associated.value - value to be associated with the specified key.Copyright © 2017 SAP SE. All Rights Reserved.