|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.datamodel.NumberUtils
public class NumberUtils
Number related utilities.
Constructor Summary | |
---|---|
NumberUtils()
|
Method Summary | |
---|---|
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(java.util.List<java.lang.Double> list)
Converts a list to an array of primitive values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumberUtils()
Method Detail |
---|
public static long minInf(long l1, long l2)
l1
- The first valuel2
- The second value
public static int compareInf(long l1, long l2)
l1
- The first valuel2
- The second value
public static final double[] toPrimitiveArray(java.util.List<java.lang.Double> list)
list
- the list to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |