如何验证 Set 是空集还是 new HashSet<>() ?尝试了两种方法 -
size
CollectionUtils.isEmpty()
java collections hashset is-empty
collections ×1
hashset ×1
is-empty ×1
java ×1