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 byte[]cloneOrEmpty(byte[] source)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.
-
-
-
Method Detail
-
cloneOrEmpty
public static byte[] cloneOrEmpty(byte[] source)
-
cloneOrEmpty
public static int[] cloneOrEmpty(int[] source)
-
isOneOf
@SafeVarargs public static <T> boolean isOneOf(T left, T... rights)
Tests if left is equal to one of the rights. Also returns true if both are null.
-
-