public class ClassMap extends Object implements Map, 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(Class classKey)
Returns true if this map contains a mapping for the specified classkey.
|
boolean |
containsKey(Object key)
Returns true if this map contains a mapping for the specified key.
|
boolean |
containsValue(Object value)
Returns true if this map maps one or more keys to the specified value.
|
Set |
entrySet()
Returns a set view of the mappings contained in this map.
|
Object |
get(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.
|
Set |
keySet()
Returns a set view of the keys contained in this map.
|
Object |
put(Object key,
Object value)
Associates the specified value with the specified key in this map.
|
void |
putAll(Map map)
Copies all of the mappings from the specified map to this map.
|
Object |
remove(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.
|
Collection |
values()
Returns a collection view of the values contained in this map.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic int size()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey in interface Mapkey - key whose presence in this map is to be testedpublic boolean containsClass(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(Object value)
containsValue in interface Mapvalue - value whose presence in this map is to be testedpublic Collection values()
public void putAll(Map map)
public Set entrySet()
public Set keySet()
public Object get(Object key)
Object then this method will always return
return a non-null entry if you use an object of type Class as parameter.public Object remove(Object key)
public Object put(Object key, Object value)
put in interface 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.