org.nuxeo.common.collections
Class PrimitiveArrays
java.lang.Object
org.nuxeo.common.collections.PrimitiveArrays
public final class PrimitiveArrays
- extends java.lang.Object
- Author:
- Bogdan Stefanescu
Method Summary |
static boolean[] |
toBooleanArray(java.util.Collection col)
|
static byte[] |
toByteArray(java.util.Collection col)
|
static char[] |
toCharArray(java.util.Collection col)
|
static double[] |
toDoubleArray(java.util.Collection col)
|
static float[] |
toFloatArray(java.util.Collection col)
|
static int[] |
toIntArray(java.util.Collection col)
|
static java.util.List<?> |
toList(java.lang.Object array)
|
static long[] |
toLongArray(java.util.Collection col)
|
static java.lang.Object[] |
toObjectArray(java.lang.Object array)
|
static java.lang.Object |
toPrimitiveArray(java.util.Collection<java.lang.Object> col,
java.lang.Class primitiveArrayType)
|
static short[] |
toShortArray(java.util.Collection col)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toPrimitiveArray
public static java.lang.Object toPrimitiveArray(java.util.Collection<java.lang.Object> col,
java.lang.Class primitiveArrayType)
toIntArray
public static int[] toIntArray(java.util.Collection col)
toLongArray
public static long[] toLongArray(java.util.Collection col)
toDoubleArray
public static double[] toDoubleArray(java.util.Collection col)
toFloatArray
public static float[] toFloatArray(java.util.Collection col)
toBooleanArray
public static boolean[] toBooleanArray(java.util.Collection col)
toShortArray
public static short[] toShortArray(java.util.Collection col)
toByteArray
public static byte[] toByteArray(java.util.Collection col)
toCharArray
public static char[] toCharArray(java.util.Collection col)
toObjectArray
public static java.lang.Object[] toObjectArray(java.lang.Object array)
toList
public static java.util.List<?> toList(java.lang.Object array)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.