Top Constructors Methods
com.openhtmltopdf.util

public Class ArrayUtil

extends Object
Class Inheritance
Imports
java.util.Arrays, java.util.stream.Collectors

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String[]
cloneOrEmpty(String[] source)

public static int[]
cloneOrEmpty(int[] source)

public static <T> boolean
isOneOf(T left, T... rights)

Tests if left is equal to one of the rights.

public static String
join(String[] partials, String separator)

Joins a string array, with the given separator.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ArrayUtilback to summary
public ArrayUtil()

Method Detail

cloneOrEmptyback to summary
public static String[] cloneOrEmpty(String[] source)
cloneOrEmptyback to summary
public static int[] cloneOrEmpty(int[] source)
isOneOfback to summary
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.

Annotations
@SafeVarargs
joinback to summary
public static String join(String[] partials, String separator)

Joins a string array, with the given separator.