Package io.deephaven.util.type
Class ArrayTypeUtils
java.lang.Object
io.deephaven.util.type.ArrayTypeUtils
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Boolean[]
booleanNullArray
(int size) static byte[]
byteNullArray
(int size) static char[]
charNullArray
(int size) static double[]
doubleNullArray
(int size) static boolean
static float[]
floatNullArray
(int size) static ArrayTypeUtils.ArrayAccessor<?>
getArrayAccessor
(Object array) 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 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 short[]
shortNullArray
(int size) 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_BOOLEAN_ARRAY
public static final boolean[] EMPTY_BOOLEAN_ARRAY -
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_OBJECT_ARRAY
-
EMPTY_STRING_ARRAY
-
EMPTY_STRING_ARRAY_ARRAY
-
EMPTY_BOOLEANBOXED_ARRAY
-
-
Constructor Details
-
ArrayTypeUtils
public ArrayTypeUtils()
-
-
Method Details
-
getArrayAccessor
-
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) -
getBoxedArray
-
getBoxedArray
-
getBoxedArray
-
getBoxedArray
-
getBoxedArray
-
getBoxedArray
-
getBoxedArray
-
getBoxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedArray
-
getUnboxedByteArray
-
getUnboxedCharArray
-
getUnboxedShortArray
-
getUnboxedIntArray
-
getUnboxedLongArray
-
getUnboxedFloatArray
-
getUnboxedDoubleArray
-
getBoxedArray
-
equals
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-