public class NumberUtils extends Object
Constructor and Description |
---|
NumberUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
compareInf(long l1,
long l2)
Compare two given positive longs, with the addition that -1 means infinity.
|
static long |
minInf(long l1,
long l2)
Return the smallest value of two given positive longs, with the addition that -1 means infinity.
|
static double[] |
toPrimitiveArray(List<Double> list)
Converts a list to an array of primitive values.
|
public NumberUtils()
public static long minInf(long l1, long l2)
l1
- The first valuel2
- The second valuepublic static int compareInf(long l1, long l2)
l1
- The first valuel2
- The second valuepublic static final double[] toPrimitiveArray(List<Double> list)
list
- the list to convertCopyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.