摘要: 动态代理Interface proxy = (Interface)Proxy.newProxyInstance( Interface.class.getClassLoader(), new Class[] { Interface.class }, new DynamicProxyHandler... 阅读全文
posted @ 2015-07-18 21:08 sycamore tree 阅读(198) 评论(0) 推荐(0) 编辑
摘要: java.util包中的Arrays和Collections提供了很多方便的方式来往一个Collection中添加元素。Arrays.asList()方法接受一个数组或者用逗号分隔的元素列表,并将其转换为一个List对象。当然,这个数组中存储的或者元素列表中的元素可以是任何对象。而Collectio... 阅读全文
posted @ 2015-07-18 21:07 sycamore tree 阅读(746) 评论(0) 推荐(0) 编辑