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 interfacestatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic 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 ObjectboxedToPrimitive(Set<?> objects, Class type) static byte[]byteNullArray(int size) static char[]charNullArray(int size) static ArrayUtils.ArrayAccessorcreateArrayAccessor(Object element, int size) static double[]doubleNullArray(int size) static booleanstatic float[]floatNullArray(int size) static ArrayUtils.ArrayAccessorgetAccessorForElementType(Class componentType, int size) static ArrayUtils.ArrayAccessorgetArrayAccessor(Object array) static ArrayUtils.ArrayAccessorgetArrayAccessorFromArray(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 DbArraygetDbArray(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 ObjectgetUnboxedArray(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 ObjecttoArray(Collection<?> objects) static ObjecttoArray(Collection<?> objects, Class elementType) static StringtoString(boolean[] a, int offset, int length) static StringtoString(byte[] a, int offset, int length) static StringtoString(char[] a, int offset, int length) static StringtoString(double[] a, int offset, int length) static StringtoString(float[] a, int offset, int length) static StringtoString(int[] a, int offset, int length) static StringtoString(long[] a, int offset, int length) static StringtoString(short[] a, int offset, int length) static Stringstatic 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
-