Guava
涛濤
Hope for the best, prepare for the worst!
展开
-
Google Guava API学习笔记(1):基础
Guava项目包括了多个Google的核心库,包括collections、caching、primitives 、concurrency libraries、common annotations、string processing、I/O等,他们被广泛用于Google项目的开发。 学习地址:http://code.google.com/p/guava-libraries/wiki/Guav转载 2017-08-30 12:30:22 · 362 阅读 · 0 评论 -
Google Guava API学习笔记(2):集合
不可变集合 Immutable Collections 例子 Java代码 public static final ImmutableSet COLOR_NAMES = ImmutableSet.of( "red", "orange", "yellow", "green", "blue", "pu转载 2017-08-30 12:31:48 · 352 阅读 · 0 评论 -
Guava官方文档-RateLimiter类
原文链接 作者:Dimitris Andreou 译者:魏嘉鹏 校对:方腾飞 RateLimiter 从概念上来讲,速率限制器会在可配置的速率下分配许可证。如果必要的话,每个acquire() 会阻塞当前线程直到许可证可用后获取该许可证。一旦获取到许可证,不需要再释放许可证。 校对注:RateLimiter使用的是一种叫令牌桶的流控算法,RateLimiter会按照一定的频率往桶里扔转载 2017-12-04 10:05:17 · 228 阅读 · 0 评论