作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
Google 集合 Joiner 线程安全吗?
最佳答案
是的!我们不会重复 SimpleDateFormat
的错误。 :-)
Joiner
需要对其姊妹类 Splitter
进行类似的文档升级,它说:
* <p><b>Warning: splitter instances are always immutable</b>; a configuration
* method such as {@code omitEmptyStrings} has no effect on the instance it
* is invoked on! You must store and use the new splitter instance returned by
* the method. This makes splitters thread-safe, and safe to store as {@code
* static final} constants . . .
关于java - Joiner 线程安全吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2374823/
我是一名优秀的程序员,十分优秀!