Package com.illumon.iris.db.tables.utils
Class ArrayUtils
java.lang.Object
com.illumon.iris.db.tables.utils.ArrayUtils
Common utilities for interacting generically with arrays.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean[]
static final byte[]
static final char[]
static final DBDateTime[]
static final double[]
static final float[]
static final int[]
static final long[]
static final Object[]
static final short[]
static final String[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Boolean[]
booleanNullArray
(int size) static Object
boxedToPrimitive
(Set<?> objects, Class type) static byte[]
byteNullArray
(int size) static char[]
charNullArray
(int size) static ArrayUtils.ArrayAccessor
createArrayAccessor
(Object element, int size) static double[]
doubleNullArray
(int size) static boolean
static float[]
floatNullArray
(int size) static ArrayUtils.ArrayAccessor
getAccessorForElementType
(Class componentType, int size) static ArrayUtils.ArrayAccessor
getArrayAccessor
(Object array) static ArrayUtils.ArrayAccessor
getArrayAccessorFromArray
(Object arrayPrototype, int size) static Boolean[]
getBoxedArray
(boolean[] referenceData) static Byte[]
getBoxedArray
(byte[] referenceData) static Character[]
getBoxedArray
(char[] referenceData) static Double[]
getBoxedArray
(double[] referenceData) static Float[]
getBoxedArray
(float[] referenceData) static Integer[]
getBoxedArray
(int[] referenceData) static Long[]
getBoxedArray
(long[] referenceData) static Short[]
getBoxedArray
(short[] referenceData) static Object[]
getBoxedArray
(Object value) static DbArray
getDbArray
(Object dbArray) static byte[]
getUnboxedArray
(Byte[] boxedArray) static char[]
getUnboxedArray
(Character[] boxedArray) static double[]
getUnboxedArray
(Double[] boxedArray) static float[]
getUnboxedArray
(Float[] boxedArray) static int[]
getUnboxedArray
(Integer[] boxedArray) static long[]
getUnboxedArray
(Long[] boxedArray) static Object
getUnboxedArray
(Object value) static short[]
getUnboxedArray
(Short[] boxedArray) static byte[]
getUnboxedByteArray
(Object[] boxedArray) static char[]
getUnboxedCharArray
(Object[] boxedArray) static double[]
getUnboxedDoubleArray
(Object[] boxedArray) static float[]
getUnboxedFloatArray
(Object[] boxedArray) static int[]
getUnboxedIntArray
(Object[] boxedArray) static long[]
getUnboxedLongArray
(Object[] boxedArray) static short[]
getUnboxedShortArray
(Object[] boxedArray) static int[]
intNullArray
(int size) static long[]
longNullArray
(int size) static <T> T[]
nullSafeDbArrayToArray
(DbArray<T> dbArray) static Boolean[]
nullSafeDbArrayToArray
(DbBooleanArray dbArray) static byte[]
nullSafeDbArrayToArray
(DbByteArray dbArray) static char[]
nullSafeDbArrayToArray
(DbCharArray dbArray) static double[]
nullSafeDbArrayToArray
(DbDoubleArray dbArray) static float[]
nullSafeDbArrayToArray
(DbFloatArray dbArray) static int[]
nullSafeDbArrayToArray
(DbIntArray dbArray) static long[]
nullSafeDbArrayToArray
(DbLongArray dbArray) static short[]
nullSafeDbArrayToArray
(DbShortArray dbArray) static short[]
shortNullArray
(int size) static Object
toArray
(Collection<?> objects) static Object
toArray
(Collection<?> objects, Class elementType) static String
toString
(boolean[] a, int offset, int length) static String
toString
(byte[] a, int offset, int length) static String
toString
(char[] a, int offset, int length) static String
toString
(double[] a, int offset, int length) static String
toString
(float[] a, int offset, int length) static String
toString
(int[] a, int offset, int length) static String
toString
(long[] a, int offset, int length) static String
toString
(short[] a, int offset, int length) static String
static String
-
Field Details
-
EMPTY_CHAR_ARRAY
public static final char[] EMPTY_CHAR_ARRAY -
EMPTY_BYTE_ARRAY
public static final byte[] EMPTY_BYTE_ARRAY -
EMPTY_SHORT_ARRAY
public static final short[] EMPTY_SHORT_ARRAY -
EMPTY_INT_ARRAY
public static final int[] EMPTY_INT_ARRAY -
EMPTY_LONG_ARRAY
public static final long[] EMPTY_LONG_ARRAY -
EMPTY_FLOAT_ARRAY
public static final float[] EMPTY_FLOAT_ARRAY -
EMPTY_DOUBLE_ARRAY
public static final double[] EMPTY_DOUBLE_ARRAY -
EMPTY_BOOLEAN_ARRAY
public static final boolean[] EMPTY_BOOLEAN_ARRAY -
EMPTY_OBJECT_ARRAY
-
EMPTY_DATETIME_ARRAY
-
EMPTY_STRING_ARRAY
-
-
Constructor Details
-
ArrayUtils
public ArrayUtils()
-
-
Method Details
-
getArrayAccessor
-
createArrayAccessor
-
intNullArray
public static int[] intNullArray(int size) -
booleanNullArray
-
byteNullArray
public static byte[] byteNullArray(int size) -
charNullArray
public static char[] charNullArray(int size) -
doubleNullArray
public static double[] doubleNullArray(int size) -
floatNullArray
public static float[] floatNullArray(int size) -
longNullArray
public static long[] longNullArray(int size) -
shortNullArray
public static short[] shortNullArray(int size) -
toArray
-
boxedToPrimitive
-
getArrayAccessorFromArray
-
toArray
-
getAccessorForElementType
-
getBoxedArray
-
getBoxedArray
-
getBoxedArray
-
getBoxedArray
-
getBoxedArray
-
getBoxedArray
-
getBoxedArray
-
getBoxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedByteArray
-
getUnboxedCharArray
-
getUnboxedShortArray
-
getUnboxedIntArray
-
getUnboxedLongArray
-
getUnboxedFloatArray
-
getUnboxedDoubleArray
-
getBoxedArray
-
getDbArray
-
nullSafeDbArrayToArray
-
nullSafeDbArrayToArray
-
nullSafeDbArrayToArray
-
nullSafeDbArrayToArray
-
nullSafeDbArrayToArray
-
nullSafeDbArrayToArray
-
nullSafeDbArrayToArray
-
nullSafeDbArrayToArray
-
nullSafeDbArrayToArray
-
equals
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-