Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.common.collections
Class PrimitiveArrays

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

public final class PrimitiveArrays
extends Object

Author:
Bogdan Stefanescu

Method Summary
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 Object toPrimitiveArray(Collection<Object> col, Class primitiveArrayType)
           
static short[] toShortArray(Collection col)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

toObjectArray

public static Object[] toObjectArray(Object array)

toList

public static List<?> toList(Object array)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.