当前位置: 技术问答>java相关
这个问题要对Java非常熟的人才能解决!
来源: 互联网 发布时间:2015-06-12
本文导语: public Map item2index; 请问Map类型有些什么样的成员变量和成员函数? | java.util Interface Map: Inner Class Summary staticinterface Map.Entry A map entry (key-value pair). Method Summary void cl...
public Map item2index;
请问Map类型有些什么样的成员变量和成员函数?
请问Map类型有些什么样的成员变量和成员函数?
|
java.util
Interface Map:
Inner Class Summary
staticinterface Map.Entry
A map entry (key-value pair).
Method Summary
void clear()
Removes all mappings from this map (optional operation).
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.
boolean equals(Object o)
Compares the specified object with this map for equality.
Object get(Object key)
Returns the value to which this map maps the specified key.
int hashCode()
Returns the hash code value for this map.
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 (optional operation).
void putAll(Map t)
Copies all of the mappings from the specified map to this map (optional operation).
Object remove(Object key)
Removes the mapping for this key from this map if present (optional operation).
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.
Interface Map:
Inner Class Summary
staticinterface Map.Entry
A map entry (key-value pair).
Method Summary
void clear()
Removes all mappings from this map (optional operation).
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.
boolean equals(Object o)
Compares the specified object with this map for equality.
Object get(Object key)
Returns the value to which this map maps the specified key.
int hashCode()
Returns the hash code value for this map.
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 (optional operation).
void putAll(Map t)
Copies all of the mappings from the specified map to this map (optional operation).
Object remove(Object key)
Removes the mapping for this key from this map if present (optional operation).
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.