Class ArrayUtils
java.lang.Object
com.igormaznitsa.meta.common.utils.ArrayUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean[]Empty boolean array.static final byte[]Empty byte array.static final char[]Empty char array.static final int[]Empty int array.static final long[]Empty long array.static final Object[]Empty object array.static final short[]Empty short array.static final String[]Empty string array. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T[]joinArrays(T[]... arrays) Join arrays provided as parameters, all arrays must be the same type, null values allowed.
-
Field Details
-
EMPTY_OBJECT_ARRAY
-
EMPTY_STRING_ARRAY
-
EMPTY_BYTE_ARRAY
public static final byte[] EMPTY_BYTE_ARRAYEmpty byte array.- Since:
- 1.0.2
-
EMPTY_CHAR_ARRAY
public static final char[] EMPTY_CHAR_ARRAYEmpty char array.- Since:
- 1.0.2
-
EMPTY_SHORT_ARRAY
public static final short[] EMPTY_SHORT_ARRAYEmpty short array.- Since:
- 1.0.2
-
EMPTY_BOOL_ARRAY
public static final boolean[] EMPTY_BOOL_ARRAYEmpty boolean array.- Since:
- 1.0.2
-
EMPTY_INT_ARRAY
public static final int[] EMPTY_INT_ARRAYEmpty int array.- Since:
- 1.0.2
-
EMPTY_LONG_ARRAY
public static final long[] EMPTY_LONG_ARRAYEmpty long array.- Since:
- 1.0.2
-
-
Constructor Details
-
ArrayUtils
private ArrayUtils()
-
-
Method Details
-
joinArrays
Join arrays provided as parameters, all arrays must be the same type, null values allowed.- Type Parameters:
T- type of array- Parameters:
arrays- array of arrays to be joined- Returns:
- all joined arrays as single array
- Since:
- 1.0
-