嵌套类引用实例化的外部类的方法
2011-10-21 16:49
176 查看
class:java.util.HashMap
line:814
HashMap.this.removeEntryForKey(k)
line:814
HashMap.this.removeEntryForKey(k)
public class HashMap<K,V> extends AbstractMap<K,V> implements Map<K,V>, Cloneable, Serializable { ... final Entry<K,V> removeEntryForKey(Object key) {...} private abstract class HashIterator<E> implements Iterator<E> { Entry<K,V> next; // next entry to return int expectedModCount; // For fast-fail int index; // current slot Entry<K,V> current; // current entry HashIterator() {...} public final boolean hasNext() {...} final Entry<K,V> nextEntry() {...} public void remove() { if (current == null) throw new IllegalStateException(); if (modCount != expectedModCount) throw new ConcurrentModificationException(); Object k = current.key; current = null; HashMap.this.removeEntryForKey(k); expectedModCount = modCount; } } }
相关文章推荐
- Odoo,Qweb,Report报表的外部方法引用的问题
- 内部类访问外部类的变量必须是final吗,java静态方法中不能引用非静态变量,静态方法中不能创建内部类的实例
- 引用外部jar包,程序出错的解决方法
- Android代码学习-嵌套类,嵌套接口,匿名类,接口引用,子类调用父类的方法
- awk引用外部变量及调用系统命令方法
- “error LNK2019: 无法解析的外部符号 _main,该符号在函数 ___tmainCRTStartup 中被引用”解决方法。
- 使用frame,框架后,在jsp中,外部引用 link css样式表无效的解决方法
- WPF引用外部类库中的资源文件提示不能找到的解决方法
- 解决使用VS2010时,引用外部dll时提示,无法嵌入互操作类型“……”,请改用适用的接口的解决方法
- onclick方法中引用外部其它元素需要final问题解决
- OSGI中引用外部包的几种方法
- xml外部DTD及引用方法
- Jsp中引用外部文件的方法
- 利用命令行引用外部jar包以使程序正常运行的4种方法
- 错误 1 error LNK2019: 无法解析的外部符号 __imp__pthread_create,该符号在函数 _main 中被引用 解决方法
- unity3d引用和实例化对象的方法
- 抽象类和接口的区别,内部类引用外部方法final参数,守护线程和用户线程
- ActionScript3 取得外部加载的SWF显示对象类的引用方法
- shell表达式中引用外部变量的方法(例如awk中引用外部变量)
- PHP引用操作以及外部操作函数的局部静态变量的方法