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| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
greaterThanEqualToZero(Object obj)
大于等于 0(Integer、Long、Double、Float、Short)
|
static boolean |
greaterThanZero(Object obj)
大于 0(Integer、Long、Double、Float、Short)
|
static boolean |
isInteger(String str)
是否为整数
|
static boolean |
lessThanEqualToZero(Object obj)
小于等于 0(Integer、Long、Double、Float、Short)
|
static boolean |
lessThanZero(Object obj)
小于 0(Integer、Long、Double、Float、Short)
|
static Long |
parseLong(String s) |
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 lessThanZero(Object obj)
obj - 值public static boolean lessThanEqualToZero(Object obj)
obj - 值public static boolean greaterThanZero(Object obj)
obj - 值public static boolean greaterThanEqualToZero(Object obj)
obj - 值public static boolean isInteger(String str)
str - Copyright © 2021. All rights reserved.