Class ArrayUtil

java.lang.Object
com.openhtmltopdf.util.ArrayUtil

public class ArrayUtil
extends Object
  • Constructor Details

  • Method Details

    • cloneOrEmpty

      public static String[] cloneOrEmpty​(String[] source)
    • 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.
    • join

      public static String join​(String[] partials, String separator)
      Joins a string array, with the given separator.