mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
fix doc
This commit is contained in:
parent
92ca87a8fc
commit
e6b89806f4
@ -2078,13 +2078,13 @@ public class CollUtil {
|
||||
/**
|
||||
* 一个对象不为空且不存在于该集合中时,加入到该集合中<br>
|
||||
* <pre>
|
||||
* null, null => false
|
||||
* [], null => false
|
||||
* null, "123" => false
|
||||
* ["123"], "123" => false
|
||||
* [], "123" => true
|
||||
* ["456"], "123" => true
|
||||
* [Animal{"name": "jack"}], Dog{"name": "jack"} => true
|
||||
* null, null -> false
|
||||
* [], null -> false
|
||||
* null, "123" -> false
|
||||
* ["123"], "123" -> false
|
||||
* [], "123" -> true
|
||||
* ["456"], "123" -> true
|
||||
* [Animal{"name": "jack"}], Dog{"name": "jack"} -> true
|
||||
* </pre>
|
||||
* @param collection 被加入的集合
|
||||
* @param object 要添加到集合的对象
|
||||
|
Loading…
Reference in New Issue
Block a user