gpt4 book ai didi

java - Joiner 线程安全吗?

转载 作者:太空狗 更新时间:2023-10-29 22:42:35 25 4
gpt4 key购买 nike

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com