public final class NumberMethods extends NumberUtils
commons-lang3
's NumberUtils
class as one-liner methods.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_ZERO, LONG_MINUS_ONE, LONG_ONE, LONG_ZERO, SHORT_MINUS_ONE, SHORT_ONE, SHORT_ZERO
Modifier and Type | Method and Description |
---|---|
static String |
format(Double input,
String format) |
static String |
format(Float input,
String format) |
static String |
format(Integer input,
String format) |
static String |
format(Long input,
String format) |
static String |
format(Short input,
String format) |
static Integer |
toInteger(Object object) |
static Long |
toLong(Object object) |
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, toFloat, toFloat, toInt, toInt, toLong, toLong, toShort, toShort
Copyright © 2019. All rights reserved.