2011年10月21日

摘要: class:java.util.HashMapline:814HashMap.this.removeEntryForKey(k) 1 public class HashMap<K,V> 2 extends AbstractMap<K,V> 3 implements Map<K,V>, Cloneable, Serializable 4 { 5 ... 6 final Entry<K,V> removeEntryForKey(Object key) {...} 7 private abstract class HashIterator<E&g 阅读全文
posted @ 2011-10-21 16:49 大松 阅读(329) 评论(0) 推荐(0) 编辑

2011年10月20日

摘要: 阅读全文
posted @ 2011-10-20 16:38 大松 阅读(165) 评论(0) 推荐(0) 编辑

2011年10月19日

摘要: /** * The int value representing the public * modifier. */ public static final int PUBLIC = 0x00000001; /** * The int value representing the private * modifier. */ public static final int PRIVATE = 0x00000002; 阅读全文
posted @ 2011-10-19 23:37 大松 阅读(139) 评论(0) 推荐(0) 编辑
摘要: java.beans.EventHandler.EventHandler public static T create(Class listenerInterface, Object target, String action, String eventPropertyName, String listenerMethodName){...} 阅读全文
posted @ 2011-10-19 23:13 大松 阅读(135) 评论(0) 推荐(0) 编辑
摘要: java.awt.event.MouseAdapter 阅读全文
posted @ 2011-10-19 23:09 大松 阅读(142) 评论(0) 推荐(0) 编辑
摘要: CLASS: java.beans.ReflectionUtilsMETHOD: getMostSpecificMethod(List, Class[]); 阅读全文
posted @ 2011-10-19 21:43 大松 阅读(140) 评论(0) 推荐(0) 编辑

2011年10月11日

摘要: 客户端通过ICE调用远程方法,并呈现返回结果到UI操作的时序图:时序图附加:iceRmp.rar 阅读全文
posted @ 2011-10-11 13:43 大松 阅读(204) 评论(0) 推荐(0) 编辑

2011年9月28日

摘要: public class MainThread{ private void corssThreadInvoke(final String arg) { QApplication.invokeLater(new Runnable() { String arg_ = arg; public void run() { //TODO //如果需要调用全局变量, //就必须用方法来... 阅读全文
posted @ 2011-09-28 15:35 大松 阅读(1474) 评论(0) 推荐(0) 编辑

2011年9月27日

摘要: private List<Connection> cloneConnectionsForceInstance() { List<Connection> newList = new ArrayList<Connection>(); if (connections != null) newList.addAll(connections); return newList;}private List<Connection> cloneConnections() { if (connections == null) return null; List< 阅读全文
posted @ 2011-09-27 10:22 大松 阅读(184) 评论(0) 推荐(0) 编辑

2011年9月26日

摘要: A.如果List的泛型类型为引用类型(Object), 那么,remove只针对List实例所在的栈数据,堆数据的移除不由remove完成(是gc完成)。 B.List移除功能的核心,在Java内部的实现为: /* * Private remove method that skips bounds checking and does not * return the value removed. */ private void fastRemove(int index) { modCount++; int numMoved = size - index - 1; if (numMoved &g 阅读全文
posted @ 2011-09-26 21:51 大松 阅读(1533) 评论(0) 推荐(0) 编辑