public class NumberUtil
extends java.lang.Object
Constructor and Description |
---|
NumberUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.Integer> |
findMissingNumbers(java.util.List<java.lang.Integer> orders,
int first,
int last) |
static int |
findNearest(int of,
java.util.List<java.lang.Integer> orders) |
static int |
toInt(java.lang.String num,
int defVal)
Parses the number to an int, or returns the default value if it cannot be parsed as int
|
public static int toInt(java.lang.String num, int defVal)
num
- defVal
- public static java.util.List<java.lang.Integer> findMissingNumbers(java.util.List<java.lang.Integer> orders, int first, int last)
public static int findNearest(int of, java.util.List<java.lang.Integer> orders)