Class CollectionUtils

java.lang.Object
com.google.adk.utils.CollectionUtils

public final class CollectionUtils extends Object
常用的集合相关代码片段。
  • 方法详细信息(Method Details)

    • isNullOrEmpty

      public static <T> boolean isNullOrEmpty(Iterable<T> iterable)
      检查给定的可迭代对象(iterable)是否为 `null` 或空(empty)。
      Parameters:
      iterable - the iterable to check
      Returns:
      true if the iterable is null or empty, false otherwise