public final class Arrays extends Object
| Modifier and Type | Method and Description |
|---|---|
static Double[] |
boxDoubleArray(double[] doubles)
Converts array of primitive doubles into array of object
Doubles |
static Integer[] |
boxIntArray(int[] ints)
Converts array of primitive ints into array of object
Integers |
static double[] |
toDoubleArray(Collection<Double> doubles)
Converts collection of
Doubles to array of primitives |
static int[] |
toIntArray(Collection<Integer> ints)
Converts collection of
Integers to array of primitives |
public static int[] toIntArray(Collection<Integer> ints)
Integers to array of primitivesints - Collection of Integer objectspublic static Integer[] boxIntArray(int[] ints)
Integersints - array of intspublic static double[] toDoubleArray(Collection<Double> doubles)
Doubles to array of primitivesdoubles - Collection of Integer objectsCopyright © 2018. All rights reserved.