public class CollectionNumbers extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
byteArrayCopyOf(CollectionNumber coll)
Copies the content of the collection to an array.
|
static byte[] |
byteArrayWrappedOrCopy(CollectionNumber coll)
Returns either the wrapped array (if exists and matches the type)
or a copy - USE WITH CAUTION AS IT MAY EXPOSE THE INTERNAL STATE
OF THE COLLECTION.
|
static double[] |
doubleArrayCopyOf(CollectionNumber coll)
Copies the content of the collection to an array.
|
static double[] |
doubleArrayWrappedOrCopy(CollectionNumber coll)
Returns either the wrapped array (if exists and matches the type)
or a copy - USE WITH CAUTION AS IT MAY EXPOSE THE INTERNAL STATE
OF THE COLLECTION.
|
static float[] |
floatArrayCopyOf(CollectionNumber coll)
Copies the content of the collection to an array.
|
static float[] |
floatArrayWrappedOrCopy(CollectionNumber coll)
Returns either the wrapped array (if exists and matches the type)
or a copy - USE WITH CAUTION AS IT MAY EXPOSE THE INTERNAL STATE
OF THE COLLECTION.
|
static int[] |
intArrayCopyOf(CollectionNumber coll)
Copies the content of the collection to an array.
|
static int[] |
intArrayWrappedOrCopy(CollectionNumber coll)
Returns either the wrapped array (if exists and matches the type)
or a copy - USE WITH CAUTION AS IT MAY EXPOSE THE INTERNAL STATE
OF THE COLLECTION.
|
static long[] |
longArrayCopyOf(CollectionNumber coll)
Copies the content of the collection to an array.
|
static long[] |
longArrayWrappedOrCopy(CollectionNumber coll)
Returns either the wrapped array (if exists and matches the type)
or a copy - USE WITH CAUTION AS IT MAY EXPOSE THE INTERNAL STATE
OF THE COLLECTION.
|
static short[] |
shortArrayCopyOf(CollectionNumber coll)
Copies the content of the collection to an array.
|
static short[] |
shortArrayWrappedOrCopy(CollectionNumber coll)
Returns either the wrapped array (if exists and matches the type)
or a copy - USE WITH CAUTION AS IT MAY EXPOSE THE INTERNAL STATE
OF THE COLLECTION.
|
static Object |
wrappedArray(CollectionNumber coll)
If available, return the array wrapped by the collection - USE WITH
CAUTION AS IT EXPOSES THE INTERNAL STATE OF THE COLLECTION.
|
static byte[] |
wrappedByteArray(CollectionNumber coll)
If available, return the array wrapped by the collection - USE WITH
CAUTION AS IT EXPOSES THE INTERNAL STATE OF THE COLLECTION.
|
static double[] |
wrappedDoubleArray(CollectionNumber coll)
If available, return the array wrapped by the collection - USE WITH
CAUTION AS IT EXPOSES THE INTERNAL STATE OF THE COLLECTION.
|
static float[] |
wrappedFloatArray(CollectionNumber coll)
If available, return the array wrapped by the collection - USE WITH
CAUTION AS IT EXPOSES THE INTERNAL STATE OF THE COLLECTION.
|
static int[] |
wrappedIntArray(CollectionNumber coll)
If available, return the array wrapped by the collection - USE WITH
CAUTION AS IT EXPOSES THE INTERNAL STATE OF THE COLLECTION.
|
static long[] |
wrappedLongArray(CollectionNumber coll)
If available, return the array wrapped by the collection - USE WITH
CAUTION AS IT EXPOSES THE INTERNAL STATE OF THE COLLECTION.
|
static short[] |
wrappedShortArray(CollectionNumber coll)
If available, return the array wrapped by the collection - USE WITH
CAUTION AS IT EXPOSES THE INTERNAL STATE OF THE COLLECTION.
|
public static Object wrappedArray(CollectionNumber coll)
coll
- the collectionpublic static float[] wrappedFloatArray(CollectionNumber coll)
coll
- the collectionpublic static double[] wrappedDoubleArray(CollectionNumber coll)
coll
- the collectionpublic static byte[] wrappedByteArray(CollectionNumber coll)
coll
- the collectionpublic static short[] wrappedShortArray(CollectionNumber coll)
coll
- the collectionpublic static int[] wrappedIntArray(CollectionNumber coll)
coll
- the collectionpublic static long[] wrappedLongArray(CollectionNumber coll)
coll
- the collectionpublic static float[] floatArrayCopyOf(CollectionNumber coll)
coll
- the collectionpublic static double[] doubleArrayCopyOf(CollectionNumber coll)
coll
- the collectionpublic static byte[] byteArrayCopyOf(CollectionNumber coll)
coll
- the collectionpublic static short[] shortArrayCopyOf(CollectionNumber coll)
coll
- the collectionpublic static int[] intArrayCopyOf(CollectionNumber coll)
coll
- the collectionpublic static long[] longArrayCopyOf(CollectionNumber coll)
coll
- the collectionpublic static float[] floatArrayWrappedOrCopy(CollectionNumber coll)
coll
- the collectionpublic static double[] doubleArrayWrappedOrCopy(CollectionNumber coll)
coll
- the collectionpublic static byte[] byteArrayWrappedOrCopy(CollectionNumber coll)
coll
- the collectionpublic static short[] shortArrayWrappedOrCopy(CollectionNumber coll)
coll
- the collectionpublic static int[] intArrayWrappedOrCopy(CollectionNumber coll)
coll
- the collectionpublic static long[] longArrayWrappedOrCopy(CollectionNumber coll)
coll
- the collectionCopyright © 2015. All rights reserved.