Package org.drasyl.util
Class ArrayUtil
java.lang.Object
org.drasyl.util.ArrayUtil
Utility class for operations on arrays.
-
Method Summary
-
Method Details
-
concat
public static <E> E[] concat()Returns an empty arrray. This noop method is required to prevent ambiguous calls.- Type Parameters:
E
- array element type- Returns:
- empty array
-
concat
public static <E> E[] concat(E[]... arrays) Returns a new array containing all elements from givenarrays
.- Type Parameters:
E
- array element type- Parameters:
arrays
- arrays to concatenate- Returns:
- array containing all elements from given
arrays
-
concat
public static byte[] concat(byte[]... arrays) Returns a new array containing all elements from givenarrays
.- Type Parameters:
E
- array element type- Parameters:
arrays
- arrays to concatenate- Returns:
- array containing all elements from given
arrays
-