Package io.rong.common

## Class CollectionUtils

- All Implemented Interfaces:

      public class CollectionUtils

  Author:

    gusd @Date 2022/10/18

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static <T> boolean` | `containsNull(Collection<T> collection)` | 检测集合中是否包含 null
    `static <T> boolean` | `checkNullOrContainsNull(Collection<T> collection)` | 检测集合为 null 或者元素包含 null
    `static <T> boolean` | `checkNullOrEmptyOrContainsNull(Collection<T> collection)` | 检测集合为 null 或者为空集合，或者元素包含 null

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### Method Detail

    - #### containsNull

           static <T> boolean containsNull(Collection<T> collection)

      检测集合中是否包含 null

      Returns:

        true 包含，false 不包含

    - #### checkNullOrContainsNull

           static <T> boolean checkNullOrContainsNull(Collection<T> collection)

      检测集合为 null 或者元素包含 null

      Returns:

        true 集合为 null 或者包含元素为 null

    - #### checkNullOrEmptyOrContainsNull

           static <T> boolean checkNullOrEmptyOrContainsNull(Collection<T> collection)

      检测集合为 null 或者为空集合，或者元素包含 null

      Returns:

        true 集合为 null 或者空集合或者元素包含 null