Package org.nuxeo.common.collections
Class PrimitiveArrays
- java.lang.Object
-
- org.nuxeo.common.collections.PrimitiveArrays
-
public final class PrimitiveArrays extends Object
- Author:
- Bogdan Stefanescu
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean[]toBooleanArray(Collection<?> col)static byte[]toByteArray(Collection<?> col)static char[]toCharArray(Collection<?> col)static double[]toDoubleArray(Collection<?> col)static float[]toFloatArray(Collection<?> col)static int[]toIntArray(Collection<?> col)static List<?>toList(Object array)static long[]toLongArray(Collection<?> col)static Object[]toObjectArray(Object array)static ObjecttoPrimitiveArray(Collection<Object> col, Class<?> primitiveArrayType)static short[]toShortArray(Collection<?> col)
-
-
-
Method Detail
-
toPrimitiveArray
public static Object toPrimitiveArray(Collection<Object> col, Class<?> primitiveArrayType)
-
toIntArray
public static int[] toIntArray(Collection<?> col)
-
toLongArray
public static long[] toLongArray(Collection<?> col)
-
toDoubleArray
public static double[] toDoubleArray(Collection<?> col)
-
toFloatArray
public static float[] toFloatArray(Collection<?> col)
-
toBooleanArray
public static boolean[] toBooleanArray(Collection<?> col)
-
toShortArray
public static short[] toShortArray(Collection<?> col)
-
toByteArray
public static byte[] toByteArray(Collection<?> col)
-
toCharArray
public static char[] toCharArray(Collection<?> col)
-
-