com.github.ofofs.jca.unit.util.ArrayUtil Maven / Gradle / Ivy
The newest version!
package com.github.ofofs.jca.unit.util;
import org.apiguardian.api.API;
/**
* 数组工具类
*
* Created: 2018-06-29 13:22
* Project: jca
*
* @author houbinbin
* @version 1.0
* @since 1.0
*/
@API(status = API.Status.INTERNAL)
public final class ArrayUtil {
private ArrayUtil(){}
/**
* 数组是否为空
* @param objects 数组
* @return 是否为空
*/
public static boolean isEmpty(final Object[] objects) {
return null == objects
|| objects.length == 0;
}
}