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.
解决方案 »
- 我说能不能不要再问String创建了几个对象这种蛋疼问题啊?
- 各位大哥,小女有一关于父类的引用指向子类的对象的问题想请教大家
- 传入的表格格式数据流(TDS)远程过程调用(RPC)协议流不正确
- java程序应用socket引起所有的network应用程序出错,如MSN,outlook...
- tomcat 启动后提示错误,请高手指点!!!谢谢!!!
- 迷惘.大家给点建议
- paintComponents为什么不管用
- 关于压缩文件名是乱码,请高手来帮着看一下
- 请问大家,怎么中断程序的运行啊?就象异常一样中断,但是这样的中断所显示的内容是自己定义的
- 用Graphic class 做图
- ----------请教高手:Swing中M-V-C中的Controller到底是什么?是JVM吗?----------
- 高分询问?谁能告诉我这些代表什么。。。。。。
事实是我要把一个Java程序改成VB。
item2index = new HashMap(items.length);
item2index.put(new Integer(items[i]), new Integer(i));
int entry_index
= ((Integer)item2index.get(new Integer(item))).intValue();在VB里能用什么把它们替换呢?还望赐教。