It converts a set of keys into an array of Double s. The new Double[0] parameter is required for the / JVM compiler to output the correct type for the returned array. (If the array parameter is long enough to store all the key values, it will be used, otherwise a new array of the same runtime type with the required length will be created.)
Here is the Javadoc .
The correct specification of the return value.
source share