All Downloads are FREE. Search and download functionalities are using the official Maven repository.

link.thingscloud.freeswitch.esl.util.ArrayUtils Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package link.thingscloud.freeswitch.esl.util;

import java.lang.reflect.Array;

/**
 * 

ArrayUtils class.

* * @author zhouhailin * @version 1.0.0 */ public class ArrayUtils { /** *

isEmpty.

* * @param array an array of {@link java.lang.Object} objects. * @return a boolean. */ public static boolean isEmpty(final Object[] array) { return getLength(array) == 0; } /** *

getLength.

* * @param array a {@link java.lang.Object} object. * @return a int. */ public static int getLength(final Object array) { if (array == null) { return 0; } return Array.getLength(array); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy