类 ArrayUtils

java.lang.Object
com.alibaba.nacos.common.utils.ArrayUtils

public class ArrayUtils extends Object
Array utils.
作者:
zzq
  • 方法详细资料

    • isEmpty

      public static boolean isEmpty(Object[] array)

      Checks if an array of Objects is empty or null.

      参数:
      array - the array to test
      返回:
      true if the array is empty or null
    • contains

      public static boolean contains(Object[] array, Object objectToFind)

      Checks if the object is in the given array.

      The method returns false if a null array is passed in.

      参数:
      array - the array to search through
      objectToFind - the object to find
      返回:
      true if the array contains the object