Package com.tridion.util
Class ArrayUtils
java.lang.Object
com.tridion.util.ArrayUtils
Array utils.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckElementIndexIsInRange(int elementIndex, int length) This method checks given elementIndex is less than or equals to length and elementIndex is greater than zero.static byte[]concat(byte[] a, byte[] b) static <T> T[]concat(T[] a, T[] b) static <T> booleanisNotEmpty(T[] a)
-
Method Details
-
concat
public static <T> T[] concat(T[] a, T[] b) -
concat
public static byte[] concat(byte[] a, byte[] b) -
isNotEmpty
public static <T> boolean isNotEmpty(T[] a) -
checkElementIndexIsInRange
public static boolean checkElementIndexIsInRange(int elementIndex, int length) This method checks given elementIndex is less than or equals to length and elementIndex is greater than zero.- Parameters:
elementIndex- this value will be checked grater than zero and less than or equal to length.length- length to compare- Returns:
- true or false based on condition
-