Package com.openhtmltopdf.util
Class ArrayUtil
java.lang.Object
com.openhtmltopdf.util.ArrayUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]
cloneOrEmpty
(int[] source) static String[]
cloneOrEmpty
(String[] source) static <T> boolean
isOneOf
(T left, T... rights) Tests if left is equal to one of the rights.static String
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.
-