类 ArrayUtils


  • public class ArrayUtils
    extends java.lang.Object
    Array utils.
    作者:
    zzq
    • 构造器概要

      构造器 
      构造器 说明
      ArrayUtils()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static boolean contains​(java.lang.Object[] array, java.lang.Object objectToFind)
      Checks if the object is in the given array.
      static boolean isEmpty​(java.lang.Object[] array)
      Checks if an array of Objects is empty or null.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • ArrayUtils

        public ArrayUtils()
    • 方法详细资料

      • isEmpty

        public static boolean isEmpty​(java.lang.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​(java.lang.Object[] array,
                                       java.lang.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