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.
解决方案 »
- 求高手赐教java编写的QQ怎么加入视频聊天功能
- 菜鸟发问
- 类初始化和非静态块
- win32com.dll 的作者是谁啊?
- 兄弟帮下忙!感激不尽!JAVA2D绘图中怎么实现画的图象被选中?还有实现图象的移动?
- 急, 在线等,马上结贴
- 急求专业的报表打印工具
- 请问各位,APPLET(由一些CLASS组成)怎么部署在html上?另外我这个是以前使用CAB部署的,可以改成jar吗?
- 装jet怎吗象死机,装不成,几次都是这个样,请问咋办?
- jBuilder4.0 Enterprise version那里有DOWN.谢谢谢谢。
- ----------请教高手: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里能用什么把它们替换呢?还望赐教。