摘要: 转载:http://www.cnblogs.com/liuling/p/2014-4-19-04.html 使用Java操作Redis需要jedis-2.1.0.jar,下载地址:http://files.cnblogs.com/liuling/jedis-2.1.0.jar.zip 如果需要使用R 阅读全文
posted @ 2017-05-03 11:53 小学生II 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 转: http://blog.csdn.net/michaellufhl/article/details/6329823 怎么根据某些条件来过滤Collection的元素?我们可以在循环里面判断元素是否符合条件然后来remove元素。 Guava已经作了这样的功能。例如你要在String的list里 阅读全文
posted @ 2017-05-03 10:32 小学生II 阅读(443) 评论(0) 推荐(0) 编辑
摘要: Google Guava提供了Joiner类专门用来连接String。 譬如说有个String数组,里面有"a","b","c",我们可以通过使用StringBuilder来创建String "a,b,c"。 Joiner提供了这一类的功能。 譬如: [java] view plain copy J 阅读全文
posted @ 2017-05-03 10:30 小学生II 阅读(6066) 评论(0) 推荐(1) 编辑
摘要: 转: 大家都知道JDK提供了Collections.UnmodifiableList(),Collections.UnmodifiableSet()和Collections.unmodifiableMap()这些包装方法。事实上它们的实现都是包装了原来的集合对象,然后在add,put,remove这 阅读全文
posted @ 2017-05-03 10:28 小学生II 阅读(593) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.csdn.net/jiangtao_st/article/details/8256610 一、下载jar包 https://github.com/xetorthio/jedis/downloads 学习参考内容 : http://blog.nosqlfan.com/htm 阅读全文
posted @ 2017-05-03 10:21 小学生II 阅读(196) 评论(0) 推荐(0) 编辑