摘要: com.google.guava guava 18.0 LoadingCache cache = CacheBuilder.newBuilder() .maximumSize(1000) .expireAf... 阅读全文
posted @ 2017-02-23 17:15 zslm___ 阅读(2454) 评论(0) 推荐(0) 编辑
摘要: ArrayList list = new ArrayList(); list.add(0, "b"); list.add(1, "a"); list.add(0, "c"); list.add(1, "d"); ITopable sortDesc = ((strList) -> { ... 阅读全文
posted @ 2017-02-23 17:04 zslm___ 阅读(201) 评论(0) 推荐(0) 编辑
摘要: public static class CacheHelper { static object _lockObj = new object(); private static Dictionary _lockObjDict = new Dictionary(); /// /// 获取缓存,如果缓存不存在,则从 acqu... 阅读全文
posted @ 2017-02-23 14:44 zslm___ 阅读(633) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { try { Class cla = Class.forName("com.money.test.Employee"); Object obj = cla.newInstance(); Method method2 = cla.g... 阅读全文
posted @ 2017-02-23 14:42 zslm___ 阅读(214) 评论(0) 推荐(0) 编辑