public class NumberUtils
extends org.apache.commons.lang3.math.NumberUtils
BYTE_MINUS_ONE, BYTE_ONE, BYTE_ZERO, DOUBLE_MINUS_ONE, DOUBLE_ONE, DOUBLE_ZERO, FLOAT_MINUS_ONE, FLOAT_ONE, FLOAT_ZERO, INTEGER_MINUS_ONE, INTEGER_ONE, INTEGER_TWO, INTEGER_ZERO, LONG_INT_MAX_VALUE, LONG_INT_MIN_VALUE, LONG_MINUS_ONE, LONG_ONE, LONG_ZERO, SHORT_MINUS_ONE, SHORT_ONE, SHORT_ZERO| 构造器和说明 |
|---|
NumberUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
geThanEqToZero(Object obj)
大于等于 0(Integer、Long、Double、Float、Short)
|
static boolean |
geThanZero(Object obj)
大于 0(Integer、Long、Double、Float、Short)
|
static boolean |
isInteger(String str)
是否为整数
|
static boolean |
leThanEqToZero(Object obj)
小于等于 0(Integer、Long、Double、Float、Short)
|
static boolean |
leThanZero(Object obj)
小于 0(Integer、Long、Double、Float、Short)
|
static Long |
parseLong(String s)
解析为 Long
|
compare, compare, compare, compare, createBigDecimal, createBigInteger, createDouble, createFloat, createInteger, createLong, createNumber, isCreatable, isDigits, isNumber, isParsable, max, max, max, max, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, min, min, min, min, toByte, toByte, toDouble, toDouble, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toLong, toLong, toScaledBigDecimal, toScaledBigDecimal, toScaledBigDecimal, toScaledBigDecimal, toScaledBigDecimal, toScaledBigDecimal, toScaledBigDecimal, toScaledBigDecimal, toShort, toShortpublic static boolean leThanZero(Object obj)
obj - 值public static boolean leThanEqToZero(Object obj)
obj - 值public static boolean geThanZero(Object obj)
obj - 值public static boolean geThanEqToZero(Object obj)
obj - 值public static boolean isInteger(String str)
str - 字符串Copyright © 2022. All rights reserved.