Class PrimitiveArrays

java.lang.Object
org.nuxeo.common.collections.PrimitiveArrays

public final class PrimitiveArrays extends Object
Author:
Bogdan Stefanescu
  • Method Details

    • 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)
    • toObjectArray

      public static Object[] toObjectArray(Object array)
    • toList

      public static List<?> toList(Object array)