Package adalid.commons.util
Class NumUtils
java.lang.Object
adalid.commons.util.NumUtils
- Author:
- Jorge Campins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Bytestatic Doublestatic Floatstatic Integerstatic Longstatic Numberstatic Shortstatic BigDecimalceiling(BigDecimal dividend, int divisor) static BigIntegerceiling(BigInteger dividend, int divisor) static Bytestatic Doublestatic Floatstatic Integerstatic Longstatic Numberstatic Shortstatic BigDecimalfloor(BigDecimal dividend, int divisor) static BigIntegerfloor(BigInteger dividend, int divisor) static Stringstatic Stringstatic Stringstatic Stringstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanmultiple(BigDecimal dividend, int divisor) static booleanmultiple(BigInteger dividend, int divisor) static BigDecimalnewBigDecimal(Object obj) static BigIntegernewBigInteger(Object obj) static Bytestatic Doublestatic Floatstatic IntegernewInteger(Object obj) static Longstatic Shortstatic BigDecimalnumberToBigDecimal(Object obj) static BigIntegernumberToBigInteger(Object obj) static BytenumberToByte(Object obj) static DoublenumberToDouble(Object obj) static FloatnumberToFloat(Object obj) static IntegernumberToInteger(Object obj) static LongnumberToLong(Object obj) static ShortnumberToShort(Object obj) static Numberstatic Numberstatic Numberstatic Bytestatic Doublestatic Floatstatic Integerstatic Longstatic Numberstatic Shortstatic BigDecimalround(BigDecimal dividend, int divisor) static BigIntegerround(BigInteger dividend, int divisor) static voidsetDecimalSeparator(Locale locale, char separator) static voidsetThousandSeparator(Locale locale, char separator) static BigDecimaltoBigDecimal(Object obj) static BigIntegertoBigInteger(Object obj) static Bytestatic Doublestatic Floatstatic Integerstatic Longstatic Numberstatic Short
-
Constructor Details
-
NumUtils
public NumUtils()
-
-
Method Details
-
getDecimalSeparator
-
setDecimalSeparator
-
getThousandSeparator
-
setThousandSeparator
-
format
-
format
-
parse
-
parse
-
parse
-
ceiling
-
ceiling
-
ceiling
-
ceiling
-
ceiling
-
ceiling
-
ceiling
-
ceiling
-
ceiling
-
floor
-
floor
-
floor
-
floor
-
floor
-
floor
-
floor
-
floor
-
floor
-
round
-
round
-
round
-
round
-
round
-
round
-
round
-
round
-
round
-
multiple
-
multiple
-
multiple
-
multiple
-
multiple
-
multiple
-
multiple
-
multiple
-
multiple
-
newByte
-
newShort
-
newInteger
-
newLong
-
newFloat
-
newDouble
-
newBigInteger
-
newBigDecimal
-
numberToByte
-
numberToShort
-
numberToInteger
-
numberToLong
-
numberToFloat
-
numberToDouble
-
numberToBigInteger
-
numberToBigDecimal
-
toNumber
-
toByte
-
toShort
-
toInteger
-
toLong
-
toFloat
-
toDouble
-
toBigInteger
-
toBigDecimal
-