Package com.openhtmltopdf.util
Class ArrayUtil
java.lang.Object
com.openhtmltopdf.util.ArrayUtil
public class ArrayUtil extends Object
-
Constructor Summary
Constructors Constructor Description ArrayUtil() -
Method Summary
Modifier and Type Method Description static int[]cloneOrEmpty(int[] source)static String[]cloneOrEmpty(String[] source)static <T> booleanisOneOf(T left, T... rights)Tests if left is equal to one of the rights.static Stringjoin(String[] partials, String separator)Joins a string array, with the given separator.
-
Constructor Details
-
ArrayUtil
public ArrayUtil()
-
-
Method Details
-
cloneOrEmpty
-
cloneOrEmpty
public static int[] cloneOrEmpty(int[] source) -
isOneOf
Tests if left is equal to one of the rights. Also returns true if both are null. -
join
Joins a string array, with the given separator.
-